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>
@@ -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,
@@ -107,7 +107,6 @@ static struct platform_driver brcmstb_reboot_driver = {
.probe = brcmstb_reboot_probe,
.name = "brcmstb-reboot",
.of_match_table = of_match,
};
@@ -99,7 +99,6 @@ static struct platform_driver gpio_poweroff_driver = {
.remove = gpio_poweroff_remove,
.name = "poweroff-gpio",
.of_match_table = of_gpio_poweroff_match,
@@ -137,7 +137,6 @@ static struct platform_driver gpio_restart_driver = {
.remove = gpio_restart_remove,
.name = "restart-gpio",
.of_match_table = of_gpio_restart_match,
@@ -153,7 +153,6 @@ static int rsctrl_probe(struct platform_device *pdev)
static struct platform_driver rsctrl_driver = {
.probe = rsctrl_probe,
.name = KBUILD_MODNAME,
.of_match_table = rsctrl_of_match,
@@ -342,7 +342,6 @@ static struct platform_driver ltc2952_poweroff_driver = {
.remove = ltc2952_poweroff_remove,
.name = "ltc2952-poweroff",
.of_match_table = of_ltc2952_poweroff_match,
.suspend = ltc2952_poweroff_suspend,
@@ -129,7 +129,6 @@ static struct platform_driver qnap_power_off_driver = {
.probe = qnap_power_off_probe,
.remove = qnap_power_off_remove,
.name = "qnap_power_off",
.of_match_table = of_match_ptr(qnap_power_off_of_match_table),
@@ -55,7 +55,6 @@ static struct platform_driver restart_poweroff_driver = {
.remove = restart_poweroff_remove,
.name = "poweroff-restart",
.of_match_table = of_restart_poweroff_match,