diff options
author | kernel test robot <lkp@intel.com> | 2020-11-11 10:25:59 +0100 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2020-11-14 09:52:35 +0100 |
commit | decbaf182d8f3a0c83be7c60d27026b5abc04c42 (patch) | |
tree | 2253afc96ca26d2c22489f01c9f8172c9e03bf90 /drivers/auxdisplay | |
parent | auxdisplay: fix use after free in lcd2s_i2c_remove() (diff) | |
download | linux-decbaf182d8f3a0c83be7c60d27026b5abc04c42.tar.xz linux-decbaf182d8f3a0c83be7c60d27026b5abc04c42.zip |
auxdisplay: fix platform_no_drv_owner.cocci warnings
drivers/auxdisplay/lcd2s.c:373: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
Fixes: 8c9108d014c5 ("auxdisplay: add a driver for lcd2s character display")
CC: Lars Poeschel <poeschel@lemonage.de>
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: kernel test robot <lkp@intel.com>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'drivers/auxdisplay')
-rw-r--r-- | drivers/auxdisplay/lcd2s.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/auxdisplay/lcd2s.c b/drivers/auxdisplay/lcd2s.c index 3eb7f04db6cb..38ba08628ccb 100644 --- a/drivers/auxdisplay/lcd2s.c +++ b/drivers/auxdisplay/lcd2s.c @@ -370,7 +370,6 @@ MODULE_DEVICE_TABLE(of, lcd2s_of_table); static struct i2c_driver lcd2s_i2c_driver = { .driver = { .name = "lcd2s", - .owner = THIS_MODULE, #ifdef CONFIG_OF .of_match_table = of_match_ptr(lcd2s_of_table), #endif |