Commit 864e28b4 authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

USB: gadget: omap_udc uses platform_driver_probe()

We now have a more correct solution for shrinking runtime driver
footprints than just marking probe() as __init ... use it.
Signed-off-by: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 36825a2d
...@@ -3104,7 +3104,6 @@ static int omap_udc_resume(struct platform_device *dev) ...@@ -3104,7 +3104,6 @@ static int omap_udc_resume(struct platform_device *dev)
/*-------------------------------------------------------------------------*/ /*-------------------------------------------------------------------------*/
static struct platform_driver udc_driver = { static struct platform_driver udc_driver = {
.probe = omap_udc_probe,
.remove = __exit_p(omap_udc_remove), .remove = __exit_p(omap_udc_remove),
.suspend = omap_udc_suspend, .suspend = omap_udc_suspend,
.resume = omap_udc_resume, .resume = omap_udc_resume,
...@@ -3122,7 +3121,7 @@ static int __init udc_init(void) ...@@ -3122,7 +3121,7 @@ static int __init udc_init(void)
#endif #endif
"%s\n", driver_desc, "%s\n", driver_desc,
use_dma ? " (dma)" : ""); use_dma ? " (dma)" : "");
return platform_driver_register(&udc_driver); return platform_driver_probe(&udc_driver, omap_udc_probe);
} }
module_init(udc_init); module_init(udc_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment