projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd70863
)
usb: host: ohci-omap: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 17 May 2013 09:51:25 +0000
(15:21 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 May 2013 17:14:53 +0000
(10:14 -0700)
Commit
0998d06310
(device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Cc: Tony Lindgren <tony@atomide.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-omap.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ohci-omap.c
b/drivers/usb/host/ohci-omap.c
index b1d32fb4a7ae60ead8bcc3db961ba0b0d9385027..8747fa6a51b7cf1c067bf7cf8264c442a0e330db 100644
(file)
--- a/
drivers/usb/host/ohci-omap.c
+++ b/
drivers/usb/host/ohci-omap.c
@@
-498,7
+498,6
@@
static int ohci_hcd_omap_drv_remove(struct platform_device *dev)
struct usb_hcd *hcd = platform_get_drvdata(dev);
usb_hcd_omap_remove(hcd, dev);
- platform_set_drvdata(dev, NULL);
return 0;
}