From: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> Using module_platform_driver() can make the code simpler. Signed-off-by: Fabio Estevam <fabio.estevam@xxxxxxxxxxxxx> --- Build-tested only Changes since v1: - Mark the patch as 1/2 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 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html