From: kbuild test robot Date: Wed, 21 Jan 2015 04:11:34 +0000 (+0800) Subject: power: max77693: fix platform_no_drv_owner.cocci warnings X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a7c45b6c28ee65b148efc72c7b7afcd22a51e50b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git power: max77693: fix platform_no_drv_owner.cocci warnings drivers/power/max77693_charger.c:747: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: Krzysztof Kozlowski Signed-off-by: Fengguang Wu Reviewed-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/max77693_charger.c b/drivers/power/max77693_charger.c index 841047cb9ff1..b042970fdeaf 100644 --- a/drivers/power/max77693_charger.c +++ b/drivers/power/max77693_charger.c @@ -740,7 +740,6 @@ MODULE_DEVICE_TABLE(platform, max77693_charger_id); static struct platform_driver max77693_charger_driver = { .driver = { - .owner = THIS_MODULE, .name = "max77693-charger", }, .probe = max77693_charger_probe,