mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
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>
This commit is contained in:
parent
9a28b7bd4f
commit
af32fe5113
2 changed files with 5 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue