summaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorLibo Chen <libo.chen@huawei.com>2013-05-10 18:48:23 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-17 02:48:28 +0200
commit9e873d429b583e59b25d0705d705239844a98717 (patch)
tree96800201815ecea2fc93fa9c8b3db5f86bf03cb5 /drivers/usb
parentUSB: ohci-platform: remove unnecessary platform_set_drvdata() (diff)
downloadlinux-9e873d429b583e59b25d0705d705239844a98717.tar.xz
linux-9e873d429b583e59b25d0705d705239844a98717.zip
usb: fsl: add missing platform_driver owner
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>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/host/ehci-fsl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 3be3df233a0e..bd831ec06dcd 100644
--- a/drivers/usb/host/ehci-fsl.c
+++ b/drivers/usb/host/ehci-fsl.c
@@ -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,
},
};