aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore/pal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/wusbcore/pal.c')
-rw-r--r--drivers/usb/wusbcore/pal.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/wusbcore/pal.c b/drivers/usb/wusbcore/pal.c
index d0b172c5ecc7..59e100c2eb50 100644
--- a/drivers/usb/wusbcore/pal.c
+++ b/drivers/usb/wusbcore/pal.c
@@ -45,10 +45,11 @@ int wusbhc_pal_register(struct wusbhc *wusbhc)
45} 45}
46 46
47/** 47/**
48 * wusbhc_pal_register - unregister the WUSB HC as a UWB PAL 48 * wusbhc_pal_unregister - unregister the WUSB HC as a UWB PAL
49 * @wusbhc: the WUSB HC 49 * @wusbhc: the WUSB HC
50 */ 50 */
51void wusbhc_pal_unregister(struct wusbhc *wusbhc) 51void wusbhc_pal_unregister(struct wusbhc *wusbhc)
52{ 52{
53 uwb_pal_unregister(&wusbhc->pal); 53 if (wusbhc->uwb_rc)
54 uwb_pal_unregister(&wusbhc->pal);
54} 55}