diff mbox

power: fix platform_no_drv_owner.cocci warnings

Message ID 20160712200655.GA18743@cairo (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

kernel test robot July 12, 2016, 8:06 p.m. UTC
drivers/power/sbs-manager.c:315: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: Karl-Heinz Schneider <karl-heinz@schneider-inet.de>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
---

 sbs-manager.c |    1 -
 1 file changed, 1 deletion(-)

--
To unsubscribe from this list: send the line "unsubscribe linux-pm" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

--- a/drivers/power/sbs-manager.c
+++ b/drivers/power/sbs-manager.c
@@ -312,7 +312,6 @@  MODULE_DEVICE_TABLE(i2c, sbsm_ids);
 static struct i2c_driver sbsm_driver = {
 	.driver = {
 		.name = "sbsm",
-		.owner = THIS_MODULE,
 	},
 	.probe		= sbsm_probe,
 	.remove		= sbsm_remove,