ARM: imx: gpc: Remove .owner field
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 9 May 2015 11:51:23 +0000 (08:51 -0300)
committerShawn Guo <shawn.guo@linaro.org>
Mon, 11 May 2015 13:38:25 +0000 (21:38 +0800)
This platform_driver does not need to set an owner as it will be
populated by the driver core.

The semantic patch that makes this change is available
in scripts/coccinelle/api/platform_no_drv_owner.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/gpc.c

index 4d60005e9277ce8f33307f411dd5c0baa8a6ac7a..c478a20c898e496be945e2816fdeb74a08632ea6 100644 (file)
@@ -464,7 +464,6 @@ static const struct of_device_id imx_gpc_dt_ids[] = {
 static struct platform_driver imx_gpc_driver = {
        .driver = {
                .name = "imx-gpc",
-               .owner = THIS_MODULE,
                .of_match_table = imx_gpc_dt_ids,
        },
        .probe = imx_gpc_probe,
This page took 0.034374 seconds and 5 git commands to generate.