usb: fsl: add missing platform_driver owner
authorLibo Chen <libo.chen@huawei.com>
Fri, 10 May 2013 16:48:23 +0000 (00:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2013 00:48:28 +0000 (17:48 -0700)
set the owner of platform_driver, to ensure that the
caller of driver holds a module refernece

Signed-off-by: Libo Chen <libo.chen@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ehci-fsl.c

index 3be3df2..bd831ec 100644 (file)
@@ -732,6 +732,7 @@ static struct platform_driver ehci_fsl_driver = {
        .shutdown = usb_hcd_platform_shutdown,
        .driver = {
                .name = "fsl-ehci",
+               .owner  = THIS_MODULE,
                .pm = EHCI_FSL_PM_OPS,
        },
 };