OSDN Git Service

ARM: mach-davinci: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:02 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:02 +0000 (16:20 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
arch/arm/mach-davinci/cpuidle.c
arch/arm/mach-davinci/pm.c

index f1ac1c9..6b8dbd2 100644 (file)
@@ -92,7 +92,6 @@ static int __init davinci_cpuidle_probe(struct platform_device *pdev)
 static struct platform_driver davinci_cpuidle_driver = {
        .driver = {
                .name   = "cpuidle-davinci",
-               .owner  = THIS_MODULE,
        },
 };
 
index a508fe5..07e23ba 100644 (file)
@@ -148,7 +148,6 @@ static int __exit davinci_pm_remove(struct platform_device *pdev)
 static struct platform_driver davinci_pm_driver = {
        .driver = {
                .name    = "pm-davinci",
-               .owner   = THIS_MODULE,
        },
        .remove = __exit_p(davinci_pm_remove),
 };