[PATCH] mmc: bcm2835: fix platform_no_drv_owner.cocci warnings

Julia Lawall julia.lawall at lip6.fr
Tue Apr 19 06:55:26 PDT 2016


Remove .owner field if calls are used which set it automatically

Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci

CC: Eric Anholt <eric at anholt.net>
Signed-off-by: Fengguang Wu <fengguang.wu at intel.com>
Signed-off-by: Julia Lawall <julia.lawall at lip6.fr>
---

 bcm2835-mmc.c |    1 -
 1 file changed, 1 deletion(-)

--- a/drivers/mmc/host/bcm2835-mmc.c
+++ b/drivers/mmc/host/bcm2835-mmc.c
@@ -1545,7 +1545,6 @@ static struct platform_driver bcm2835_mm
 	.remove     = bcm2835_mmc_remove,
 	.driver     = {
 		.name		= DRIVER_NAME,
-		.owner		= THIS_MODULE,
 		.of_match_table	= bcm2835_mmc_match,
 	},
 };



More information about the linux-rpi-kernel mailing list