[PATCH] fix platform_no_drv_owner.cocci warnings

From: kbuild test robot
Date: Thu Jan 15 2015 - 20:07:18 EST


drivers/pwm/pwm-stmpe.c:99: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

Signed-off-by: Fengguang Wu <fengguang.wu@xxxxxxxxx>
---

pwm-stmpe.c | 1 -
1 file changed, 1 deletion(-)

--- a/drivers/pwm/pwm-stmpe.c
+++ b/drivers/pwm/pwm-stmpe.c
@@ -96,7 +96,6 @@ static int stmpe_pwm_remove(struct platf
static struct platform_driver stmpe_pwm_driver = {
.driver = {
.name = "stmpe-pwm",
- .owner = THIS_MODULE,
},
.probe = stmpe_pwm_probe,
.remove = stmpe_pwm_remove,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/