x86: platform: olpc: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:16 +0000 (16:20 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:20:16 +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/x86/platform/olpc/olpc-xo1-pm.c

index a9acde7..c5350fd 100644 (file)
@@ -170,7 +170,6 @@ static int xo1_pm_remove(struct platform_device *pdev)
 static struct platform_driver cs5535_pms_driver = {
        .driver = {
                .name = "cs5535-pms",
-               .owner = THIS_MODULE,
        },
        .probe = xo1_pm_probe,
        .remove = xo1_pm_remove,
@@ -179,7 +178,6 @@ static struct platform_driver cs5535_pms_driver = {
 static struct platform_driver cs5535_acpi_driver = {
        .driver = {
                .name = "olpc-xo1-pm-acpi",
-               .owner = THIS_MODULE,
        },
        .probe = xo1_pm_probe,
        .remove = xo1_pm_remove,