projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e80ad12
)
usb: gadget: dummy_hcd: Remove redundant platform_set_drvdata()
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 6 May 2013 11:37:21 +0000
(17:07 +0530)
committer
Felipe Balbi
<balbi@ti.com>
Wed, 15 May 2013 14:21:09 +0000
(17:21 +0300)
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: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/dummy_hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/dummy_hcd.c
b/drivers/usb/gadget/dummy_hcd.c
index
a792e32
..
22236ec
100644
(file)
--- a/
drivers/usb/gadget/dummy_hcd.c
+++ b/
drivers/usb/gadget/dummy_hcd.c
@@
-1001,7
+1001,6
@@
static int dummy_udc_remove(struct platform_device *pdev)
struct dummy *dum = platform_get_drvdata(pdev);
usb_del_gadget_udc(&dum->gadget);
- platform_set_drvdata(pdev, NULL);
device_remove_file(&dum->gadget.dev, &dev_attr_function);
return 0;
}