[PATCH] gpio: fix platform_no_drv_owner.cocci warnings

From: kernel test robot
Date: Tue May 03 2022 - 05:53:40 EST


From: kernel test robot <lkp@xxxxxxxxx>

drivers/gpio/gpio-macsmc.c:230:3-8: No need to set .owner here. The core will do it.

Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

Reported-by: kernel test robot <lkp@xxxxxxxxx>
Signed-off-by: kernel test robot <lkp@xxxxxxxxx>
---

tree: https://github.com/AsahiLinux/linux bits/110-smc
head: dc3db43287ff1d44b447fff8ed6386b28b339f1c
commit: a29b7d982f099846c00493140bbf5b6aff25c948 [3/14] gpio: Add new gpio-macsmc driver for Apple Macs
:::::: branch date: 26 hours ago
:::::: commit date: 27 hours ago

drivers/gpio/gpio-macsmc.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/gpio/gpio-macsmc.c
+++ b/drivers/gpio/gpio-macsmc.c
@@ -227,7 +227,6 @@ static int macsmc_gpio_probe(struct plat
static struct platform_driver macsmc_gpio_driver = {
.driver = {
.name = "macsmc-gpio",
- .owner = THIS_MODULE,
},
.probe = macsmc_gpio_probe,
};