Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248752
b: refs/heads/master
c: af32fe5
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Apr 30, 2011
1 parent ea2b3e1 commit a517ae6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a28b7bd4f1fb388a15b12fb425a589ba6188425
refs/heads/master: af32fe511374f17feb137d7fbfe2f4c73a8f531c
4 changes: 4 additions & 0 deletions trunk/drivers/usb/renesas_usbhs/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,9 +352,13 @@ static int __devinit usbhs_probe(struct platform_device *pdev)
static int __devexit usbhs_remove(struct platform_device *pdev)
{
struct usbhs_priv *priv = usbhsc_pdev_to_priv(pdev);
struct renesas_usbhs_platform_info *info = pdev->dev.platform_data;
struct renesas_usbhs_driver_callback *dfunc = &info->driver_callback;

dev_dbg(&pdev->dev, "usb remove\n");

dfunc->notify_hotplug = NULL;

pm_runtime_disable(&pdev->dev);

usbhsc_bus_ctrl(priv, 0);
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/linux/usb/renesas_usbhs.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

0 comments on commit a517ae6

Please sign in to comment.