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:
8c9efc6
)
usb: host: ohci-da8xx: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Fri, 17 May 2013 09:51:22 +0000
(15:21 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 May 2013 17:14:52 +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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-da8xx.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/ohci-da8xx.c
b/drivers/usb/host/ohci-da8xx.c
index 0b815a856811ed74d4bae53343a910c2d1d0ac05..6aaa9c9c8eb00f90d3f99711196659991aca2f43 100644
(file)
--- a/
drivers/usb/host/ohci-da8xx.c
+++ b/
drivers/usb/host/ohci-da8xx.c
@@
-401,7
+401,6
@@
static int ohci_hcd_da8xx_drv_remove(struct platform_device *dev)
struct usb_hcd *hcd = platform_get_drvdata(dev);
usb_hcd_da8xx_remove(hcd, dev);
- platform_set_drvdata(dev, NULL);
return 0;
}