projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36825a2
)
USB: gadget: omap_udc uses platform_driver_probe()
author
David Brownell
<
[email protected]
>
Thu, 16 Apr 2009 20:51:46 +0000
(13:51 -0700)
committer
Greg Kroah-Hartman
<
[email protected]
>
Thu, 23 Apr 2009 21:15:29 +0000
(14:15 -0700)
We now have a more correct solution for shrinking runtime driver
footprints than just marking probe() as __init ... use it.
Signed-off-by: David Brownell <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/usb/gadget/omap_udc.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/omap_udc.c
b/drivers/usb/gadget/omap_udc.c
index 57d9641c6bf8c7bf4ed968a714ed8bd168e3289e..a2db0e174f2c011b13c36454832c16eff11102c1 100644
(file)
--- a/
drivers/usb/gadget/omap_udc.c
+++ b/
drivers/usb/gadget/omap_udc.c
@@
-3104,7
+3104,6
@@
static int omap_udc_resume(struct platform_device *dev)
/*-------------------------------------------------------------------------*/
static struct platform_driver udc_driver = {
- .probe = omap_udc_probe,
.remove = __exit_p(omap_udc_remove),
.suspend = omap_udc_suspend,
.resume = omap_udc_resume,
@@
-3122,7
+3121,7
@@
static int __init udc_init(void)
#endif
"%s\n", driver_desc,
use_dma ? " (dma)" : "");
- return platform_driver_
register(&udc_driver
);
+ return platform_driver_
probe(&udc_driver, omap_udc_probe
);
}
module_init(udc_init);