Commit 99bf7761 authored by kbuild test robot's avatar kbuild test robot Committed by Greg Kroah-Hartman

staging: kpc2000: kpc_i2c: fix platform_no_drv_owner.cocci warnings

drivers/staging/kpc2000/kpc2000_i2c.c:652: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: 43ad3819 ("staging: kpc2000: kpc_i2c: add static qual to local symbols in kpc_i2c.c")
CC: Geordan Neukum <gneukum1@gmail.com>
Signed-off-by: default avatarkbuild test robot <lkp@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2a8af420
...@@ -649,7 +649,6 @@ static struct platform_driver i2c_plat_driver_i = { ...@@ -649,7 +649,6 @@ static struct platform_driver i2c_plat_driver_i = {
.remove = pi2c_remove, .remove = pi2c_remove,
.driver = { .driver = {
.name = KP_DRIVER_NAME_I2C, .name = KP_DRIVER_NAME_I2C,
.owner = THIS_MODULE,
}, },
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment