diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2011-04-21 14:10:16 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-04-29 17:24:32 -0700 |
commit | af32fe511374f17feb137d7fbfe2f4c73a8f531c (patch) | |
tree | cc60eb666cc945a39ce5e0ca4c7399aa8460af9b /include | |
parent | 9a28b7bd4f1fb388a15b12fb425a589ba6188425 (diff) | |
download | linux-3.10-af32fe511374f17feb137d7fbfe2f4c73a8f531c.tar.gz linux-3.10-af32fe511374f17feb137d7fbfe2f4c73a8f531c.tar.bz2 linux-3.10-af32fe511374f17feb137d7fbfe2f4c73a8f531c.zip |
usb: renesas_usbhs: remove callback when module removed.
The callback function which is called from platform must be removed
if module removed.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/usb/renesas_usbhs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/usb/renesas_usbhs.h b/include/linux/usb/renesas_usbhs.h index 565bca3aa44..66bbdd12d15 100644 --- a/include/linux/usb/renesas_usbhs.h +++ b/include/linux/usb/renesas_usbhs.h @@ -143,7 +143,7 @@ struct renesas_usbhs_platform_info { ({ \ struct renesas_usbhs_driver_callback *dc; \ dc = &(renesas_usbhs_get_info(pdev)->driver_callback); \ - if (dc) \ + if (dc && dc->notify_hotplug) \ dc->notify_hotplug(pdev); \ }) #endif /* RENESAS_USB_H */ |