On Fri, Jan 31, 2014 at 02:27:09AM -0200, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> > > Using module_platform_driver() can make the code simpler. > > Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Acked-by: Felipe Balbi <balbi@xxxxxx> > --- > Build-tested only > > drivers/usb/host/xhci-plat.c | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) > > diff --git a/drivers/usb/host/xhci-plat.c b/drivers/usb/host/xhci-plat.c > index 8abda5c..488e3d4 100644 > --- a/drivers/usb/host/xhci-plat.c > +++ b/drivers/usb/host/xhci-plat.c > @@ -242,13 +242,4 @@ static struct platform_driver usb_xhci_driver = { > }, > }; > MODULE_ALIAS("platform:xhci-hcd"); > - > -int xhci_register_plat(void) > -{ > - return platform_driver_register(&usb_xhci_driver); > -} > - > -void xhci_unregister_plat(void) > -{ > - platform_driver_unregister(&usb_xhci_driver); > -} > +module_platform_driver(usb_xhci_driver); > -- > 1.8.1.2 > -- balbi
Attachment:
signature.asc
Description: Digital signature