2022-05-03 13:05:31

by kernel test robot

[permalink] [raw]
Subject: [asahilinux:bits/110-smc 3/14] drivers/gpio/gpio-macsmc.c:230:3-8: No need to set .owner here. The core will do it.

tree: https://github.com/AsahiLinux/linux bits/110-smc
head: dc3db43287ff1d44b447fff8ed6386b28b339f1c
commit: a29b7d982f099846c00493140bbf5b6aff25c948 [3/14] gpio: Add new gpio-macsmc driver for Apple Macs
config: arm64-randconfig-c023-20220501 (https://download.01.org/0day-ci/archive/20220503/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 11.3.0

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


cocci warnings: (new ones prefixed by >>)
>> drivers/gpio/gpio-macsmc.c:230:3-8: No need to set .owner here. The core will do it.

Please review and possibly fold the followup patch.

--
0-DAY CI Kernel Test Service
https://01.org/lkp


2022-05-03 14:41:19

by kernel test robot

[permalink] [raw]
Subject: [PATCH] gpio: fix platform_no_drv_owner.cocci warnings

From: kernel test robot <[email protected]>

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 <[email protected]>
Signed-off-by: kernel test robot <[email protected]>
---

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,
};