]> Pileus Git - ~andy/linux/blobdiff - drivers/usb/wusbcore/pal.c
Merge tag 'soc-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[~andy/linux] / drivers / usb / wusbcore / pal.c
index d0b172c5ecc77219f885bda14fabd2991b6688d1..59e100c2eb50d899d33cc0441a9a968d13354aae 100644 (file)
@@ -45,10 +45,11 @@ int wusbhc_pal_register(struct wusbhc *wusbhc)
 }
 
 /**
- * wusbhc_pal_register - unregister the WUSB HC as a UWB PAL
+ * wusbhc_pal_unregister - unregister the WUSB HC as a UWB PAL
  * @wusbhc: the WUSB HC
  */
 void wusbhc_pal_unregister(struct wusbhc *wusbhc)
 {
-       uwb_pal_unregister(&wusbhc->pal);
+       if (wusbhc->uwb_rc)
+               uwb_pal_unregister(&wusbhc->pal);
 }