[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20150227010901.GA26245@waimea>
Date: Fri, 27 Feb 2015 09:09:01 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Bill Richardson <wfrichar@...omium.org>
Cc: kbuild-all@...org, Olof Johansson <olof@...om.net>,
Javier Martinez Canillas <javier.martinez@...labora.co.uk>,
linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...omium.org>
Signed-off-by: Fengguang Wu <fengguang.wu@...el.com>
---
cros_ec_lpc.c | 1 -
1 file changed, 1 deletion(-)
--- a/drivers/platform/chrome/cros_ec_lpc.c
+++ b/drivers/platform/chrome/cros_ec_lpc.c
@@ -269,7 +269,6 @@ MODULE_DEVICE_TABLE(dmi, cros_ec_lpc_dmi
static struct platform_driver cros_ec_lpc_driver = {
.driver = {
.name = DRV_NAME,
- .owner = THIS_MODULE,
},
.probe = cros_ec_lpc_probe,
.remove = cros_ec_lpc_remove,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists