]> git.karo-electronics.de Git - linux-beck.git/commitdiff
power: reset: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:28 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:28 +0000 (16:21 +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>
drivers/power/reset/as3722-poweroff.c
drivers/power/reset/brcmstb-reboot.c
drivers/power/reset/gpio-poweroff.c
drivers/power/reset/gpio-restart.c
drivers/power/reset/keystone-reset.c
drivers/power/reset/ltc2952-poweroff.c
drivers/power/reset/qnap-poweroff.c
drivers/power/reset/restart-poweroff.c

index 684971199bd36057f0e0755477847ceec152aaaf..60d0295fffb18a7e5b9f5c4ba5cf9c46689a8db9 100644 (file)
@@ -82,7 +82,6 @@ static int as3722_poweroff_remove(struct platform_device *pdev)
 static struct platform_driver as3722_poweroff_driver = {
        .driver = {
                .name = "as3722-power-off",
-               .owner = THIS_MODULE,
        },
        .probe = as3722_poweroff_probe,
        .remove = as3722_poweroff_remove,
index 3f236924742aeeb845775a9e32d50b8902480def..c523ea7a90ee731b90115c0fa4de095ba026d62a 100644 (file)
@@ -107,7 +107,6 @@ static struct platform_driver brcmstb_reboot_driver = {
        .probe = brcmstb_reboot_probe,
        .driver = {
                .name = "brcmstb-reboot",
-               .owner = THIS_MODULE,
                .of_match_table = of_match,
        },
 };
index ce849bc9b26940d10972942cc939c7a60639a659..e5332f1db8a792128d04bf067561fdd6efa07c12 100644 (file)
@@ -99,7 +99,6 @@ static struct platform_driver gpio_poweroff_driver = {
        .remove = gpio_poweroff_remove,
        .driver = {
                .name = "poweroff-gpio",
-               .owner = THIS_MODULE,
                .of_match_table = of_gpio_poweroff_match,
        },
 };
index a76829b3f1cd8f3cda5b841cfad8e6d9ec749435..edb327efee8bda10b1dbadfb78a23da80dba2f17 100644 (file)
@@ -137,7 +137,6 @@ static struct platform_driver gpio_restart_driver = {
        .remove = gpio_restart_remove,
        .driver = {
                .name = "restart-gpio",
-               .owner = THIS_MODULE,
                .of_match_table = of_gpio_restart_match,
        },
 };
index 408a18fd91cb9d8be94b8c31fd74ebb87a46968e..86bc100818b2bd0b297d428f036e0117539a673a 100644 (file)
@@ -153,7 +153,6 @@ static int rsctrl_probe(struct platform_device *pdev)
 static struct platform_driver rsctrl_driver = {
        .probe = rsctrl_probe,
        .driver = {
-               .owner = THIS_MODULE,
                .name = KBUILD_MODNAME,
                .of_match_table = rsctrl_of_match,
        },
index 116a1cef8f7b2808be3aa87accddd46aa27d15c9..34f38a3dc3ffbc8e2fec49e7d668d5456c283c59 100644 (file)
@@ -342,7 +342,6 @@ static struct platform_driver ltc2952_poweroff_driver = {
        .remove = ltc2952_poweroff_remove,
        .driver = {
                .name = "ltc2952-poweroff",
-               .owner = THIS_MODULE,
                .of_match_table = of_ltc2952_poweroff_match,
        },
        .suspend = ltc2952_poweroff_suspend,
index a75db7f8a92f4efda86b528c3814615327b85ce2..2789a61cec68aef32e689e6d2540050a4bc35f53 100644 (file)
@@ -129,7 +129,6 @@ static struct platform_driver qnap_power_off_driver = {
        .probe  = qnap_power_off_probe,
        .remove = qnap_power_off_remove,
        .driver = {
-               .owner  = THIS_MODULE,
                .name   = "qnap_power_off",
                .of_match_table = of_match_ptr(qnap_power_off_of_match_table),
        },
index edd707ee7281154ae11995fcfc196c63120a927f..f46f2c2e4648055ad58b26d7c44925d401e37b6f 100644 (file)
@@ -55,7 +55,6 @@ static struct platform_driver restart_poweroff_driver = {
        .remove = restart_poweroff_remove,
        .driver = {
                .name = "poweroff-restart",
-               .owner = THIS_MODULE,
                .of_match_table = of_restart_poweroff_match,
        },
 };