platform/chrome: fix platform_no_drv_owner.cocci warnings

drivers/platform/chrome/cros_ec_lpc.c:272: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

CC: Bill Richardson <wfrichar@chromium.org>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
This commit is contained in:
kbuild test robot 2015-02-27 09:09:01 +08:00 committed by Olof Johansson
parent 377415abab
commit 88999ae23b

View File

@ -269,7 +269,6 @@ MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi_table);
static struct platform_driver cros_ec_lpc_driver = { static struct platform_driver cros_ec_lpc_driver = {
.driver = { .driver = {
.name = DRV_NAME, .name = DRV_NAME,
.owner = THIS_MODULE,
}, },
.probe = cros_ec_lpc_probe, .probe = cros_ec_lpc_probe,
.remove = cros_ec_lpc_remove, .remove = cros_ec_lpc_remove,