[<prev] [next>] [day] [month] [year] [list]
Message-ID: <518D24D7.3030309@gmail.com>
Date: Sat, 11 May 2013 00:48:23 +0800
From: Libo Chen <chenlibo.3@...il.com>
To: stern@...land.harvard.edu
CC: linux-usb@...r.kernel.org, linux-kernel@...r.kernel.org,
lizefan@...wei.com
Subject: [RFC PATCH] usb: fsl: add missing platform_driver owner
From: Libo Chen <libo.chen@...wei.com>
set the owner of platform_driver, to ensure that the
caller of driver holds a module refernece
Signed-off-by: Libo Chen <libo.chen@...wei.com>
---
drivers/usb/host/ehci-fsl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/usb/host/ehci-fsl.c b/drivers/usb/host/ehci-fsl.c
index 3be3df2..bd831ec 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,
},
};
--
1.8.1.2
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists