Re: [PATCH v2 1/2] usb: host: xhci-plat: Use module_platform_driver()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sarah,

On Fri, Jan 31, 2014 at 2:29 AM, Fabio Estevam <festevam@xxxxxxxxx> wrote:
> 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);

Please discard this series. We cannot remove xhci_register_plat() as
it is used in xhci.c

Regards,

Fabio Estevam
--
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




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux