Commit fa21a580 authored by Wolfram Sang's avatar Wolfram Sang

watchdog: drop owner assignment from platform_drivers

A platform_driver does not need to set an owner, it will be populated by the
driver core.
Signed-off-by: default avatarWolfram Sang <wsa@the-dreams.de>
parent ce882ad3
......@@ -294,7 +294,6 @@ static struct platform_driver acquirewdt_driver = {
.remove = acq_remove,
.shutdown = acq_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -302,7 +302,6 @@ static struct platform_driver advwdt_driver = {
.remove = advwdt_remove,
.shutdown = advwdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -324,7 +324,6 @@ static struct platform_driver ar7_wdt_driver = {
.remove = ar7_wdt_remove,
.shutdown = ar7_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "ar7_wdt",
},
};
......
......@@ -422,7 +422,6 @@ static struct platform_driver at32_wdt_driver = {
.resume = at32_wdt_resume,
.driver = {
.name = "at32_wdt",
.owner = THIS_MODULE,
},
.shutdown = at32_wdt_shutdown,
};
......
......@@ -268,7 +268,6 @@ static struct platform_driver at91wdt_driver = {
.resume = at91wdt_resume,
.driver = {
.name = "at91_wdt",
.owner = THIS_MODULE,
.of_match_table = at91_wdt_dt_ids,
},
};
......
......@@ -393,7 +393,6 @@ static struct platform_driver at91wdt_driver = {
.remove = __exit_p(at91wdt_remove),
.driver = {
.name = "at91_wdt",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(at91_wdt_dt_ids),
},
};
......
......@@ -326,7 +326,6 @@ static struct platform_driver ath79_wdt_driver = {
.shutdown = ath97_wdt_shutdown,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(ath79_wdt_match),
},
};
......
......@@ -167,7 +167,6 @@ static struct platform_driver bcm2835_wdt_driver = {
.shutdown = bcm2835_wdt_shutdown,
.driver = {
.name = "bcm2835-wdt",
.owner = THIS_MODULE,
.of_match_table = bcm2835_wdt_of_match,
},
};
......
......@@ -242,7 +242,6 @@ static int bcm47xx_wdt_remove(struct platform_device *pdev)
static struct platform_driver bcm47xx_wdt_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "bcm47xx-wdt",
},
.probe = bcm47xx_wdt_probe,
......
......@@ -304,7 +304,6 @@ static struct platform_driver bcm63xx_wdt_driver = {
.remove = bcm63xx_wdt_remove,
.shutdown = bcm63xx_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "bcm63xx-wdt",
}
};
......
......@@ -352,7 +352,6 @@ MODULE_DEVICE_TABLE(of, bcm_kona_wdt_of_match);
static struct platform_driver bcm_kona_wdt_driver = {
.driver = {
.name = BCM_KONA_WDT_NAME,
.owner = THIS_MODULE,
.of_match_table = bcm_kona_wdt_of_match,
},
.probe = bcm_kona_wdt_probe,
......
......@@ -407,7 +407,6 @@ static struct platform_driver bfin_wdt_driver = {
.resume = bfin_wdt_resume,
.driver = {
.name = WATCHDOG_NAME,
.owner = THIS_MODULE,
},
};
......
......@@ -448,7 +448,6 @@ static const struct of_device_id coh901327_dt_match[] = {
static struct platform_driver coh901327_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "coh901327_wdog",
.of_match_table = coh901327_dt_match,
},
......
......@@ -679,7 +679,6 @@ MODULE_DEVICE_TABLE(of, cpwd_match);
static struct platform_driver cpwd_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = cpwd_match,
},
.probe = cpwd_probe,
......
......@@ -218,7 +218,6 @@ MODULE_DEVICE_TABLE(of, davinci_wdt_of_match);
static struct platform_driver platform_wdt_driver = {
.driver = {
.name = "davinci-wdt",
.owner = THIS_MODULE,
.of_match_table = davinci_wdt_of_match,
},
.probe = davinci_wdt_probe,
......
......@@ -348,7 +348,6 @@ static struct platform_driver dw_wdt_driver = {
.remove = dw_wdt_drv_remove,
.driver = {
.name = "dw_wdt",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(dw_wdt_of_match),
.pm = &dw_wdt_pm_ops,
},
......
......@@ -156,7 +156,6 @@ static int ep93xx_wdt_remove(struct platform_device *pdev)
static struct platform_driver ep93xx_wdt_driver = {
.driver = {
.owner = THIS_MODULE,
.name = "ep93xx-wdt",
},
.probe = ep93xx_wdt_probe,
......
......@@ -307,7 +307,6 @@ static const struct of_device_id gef_wdt_ids[] = {
static struct platform_driver gef_wdt_driver = {
.driver = {
.name = "gef_wdt",
.owner = THIS_MODULE,
.of_match_table = gef_wdt_ids,
},
.probe = gef_wdt_probe,
......
......@@ -258,7 +258,6 @@ static struct platform_driver geodewdt_driver = {
.remove = geodewdt_remove,
.shutdown = geodewdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -241,7 +241,6 @@ MODULE_DEVICE_TABLE(of, gpio_wdt_dt_ids);
static struct platform_driver gpio_wdt_driver = {
.driver = {
.name = "gpio-wdt",
.owner = THIS_MODULE,
.of_match_table = gpio_wdt_dt_ids,
},
.probe = gpio_wdt_probe,
......
......@@ -576,7 +576,6 @@ static struct platform_driver iTCO_wdt_driver = {
.remove = iTCO_wdt_remove,
.shutdown = iTCO_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -339,7 +339,6 @@ static struct platform_driver ibwdt_driver = {
.remove = ibwdt_remove,
.shutdown = ibwdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -313,7 +313,6 @@ static struct platform_driver ie6xx_wdt_driver = {
.remove = ie6xx_wdt_remove,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
},
};
......
......@@ -306,7 +306,6 @@ static struct platform_driver imx2_wdt_driver = {
.shutdown = imx2_wdt_shutdown,
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = imx2_wdt_dt_ids,
},
};
......
......@@ -172,7 +172,6 @@ static struct platform_driver mid_wdt_driver = {
.probe = mid_wdt_probe,
.remove = mid_wdt_remove,
.driver = {
.owner = THIS_MODULE,
.name = "intel_mid_wdt",
},
};
......
......@@ -211,7 +211,6 @@ static struct platform_driver jz4740_wdt_driver = {
.remove = jz4740_wdt_remove,
.driver = {
.name = "jz4740-wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -563,7 +563,6 @@ static int kempld_wdt_resume(struct platform_device *pdev)
static struct platform_driver kempld_wdt_driver = {
.driver = {
.name = "kempld-wdt",
.owner = THIS_MODULE,
},
.probe = kempld_wdt_probe,
.remove = kempld_wdt_remove,
......
......@@ -296,7 +296,6 @@ static struct platform_driver ks8695wdt_driver = {
.resume = ks8695wdt_resume,
.driver = {
.name = "ks8695_wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -232,7 +232,6 @@ static struct platform_driver ltq_wdt_driver = {
.remove = ltq_wdt_remove,
.driver = {
.name = "wdt",
.owner = THIS_MODULE,
.of_match_table = ltq_wdt_match,
},
};
......
......@@ -231,7 +231,6 @@ static struct platform_driver max63xx_wdt_driver = {
.id_table = max63xx_id_table,
.driver = {
.name = "max63xx_wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -187,7 +187,6 @@ static void menf21bmc_wdt_shutdown(struct platform_device *pdev)
static struct platform_driver menf21bmc_wdt = {
.driver = {
.owner = THIS_MODULE,
.name = DEVNAME,
},
.probe = menf21bmc_wdt_probe,
......
......@@ -174,7 +174,6 @@ static struct platform_driver moxart_wdt_driver = {
.remove = moxart_wdt_remove,
.driver = {
.name = "moxart-watchdog",
.owner = THIS_MODULE,
.of_match_table = moxart_watchdog_match,
},
};
......
......@@ -249,7 +249,6 @@ static struct platform_driver mpc8xxx_wdt_driver = {
.remove = mpc8xxx_wdt_remove,
.driver = {
.name = "mpc8xxx_wdt",
.owner = THIS_MODULE,
.of_match_table = mpc8xxx_wdt_match,
},
};
......
......@@ -300,7 +300,6 @@ static struct platform_driver mv64x60_wdt_driver = {
.probe = mv64x60_wdt_probe,
.remove = mv64x60_wdt_remove,
.driver = {
.owner = THIS_MODULE,
.name = MV64x60_WDT_NAME,
},
};
......
......@@ -297,7 +297,6 @@ static struct platform_driver nuc900wdt_driver = {
.remove = nuc900wdt_remove,
.driver = {
.name = "nuc900-wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -471,7 +471,6 @@ static struct platform_driver nv_tco_driver = {
.remove = nv_tco_remove,
.shutdown = nv_tco_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = TCO_MODULE_NAME,
},
};
......
......@@ -236,7 +236,6 @@ static struct platform_driver xwdt_driver = {
.probe = xwdt_probe,
.remove = xwdt_remove,
.driver = {
.owner = THIS_MODULE,
.name = WATCHDOG_NAME,
.of_match_table = xwdt_of_match,
},
......
......@@ -353,7 +353,6 @@ static struct platform_driver omap_wdt_driver = {
.suspend = omap_wdt_suspend,
.resume = omap_wdt_resume,
.driver = {
.owner = THIS_MODULE,
.name = "omap_wdt",
.of_match_table = omap_wdt_of_match,
},
......
......@@ -593,7 +593,6 @@ static struct platform_driver orion_wdt_driver = {
.remove = orion_wdt_remove,
.shutdown = orion_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = "orion_wdt",
.of_match_table = orion_wdt_of_match_table,
},
......
......@@ -207,7 +207,6 @@ MODULE_DEVICE_TABLE(of, pnx4008_wdt_match);
static struct platform_driver platform_wdt_driver = {
.driver = {
.name = "pnx4008-watchdog",
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(pnx4008_wdt_match),
},
.probe = pnx4008_wdt_probe,
......
......@@ -287,7 +287,6 @@ static struct platform_driver rdc321x_wdt_driver = {
.probe = rdc321x_wdt_probe,
.remove = rdc321x_wdt_remove,
.driver = {
.owner = THIS_MODULE,
.name = "rdc321x-wdt",
},
};
......
......@@ -237,7 +237,6 @@ MODULE_DEVICE_TABLE(of, riowd_match);
static struct platform_driver riowd_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
.of_match_table = riowd_match,
},
.probe = riowd_probe,
......
......@@ -194,7 +194,6 @@ static struct platform_driver rt288x_wdt_driver = {
.shutdown = rt288x_wdt_shutdown,
.driver = {
.name = KBUILD_MODNAME,
.owner = THIS_MODULE,
.of_match_table = rt288x_wdt_match,
},
};
......
......@@ -694,7 +694,6 @@ static struct platform_driver s3c2410wdt_driver = {
.shutdown = s3c2410wdt_shutdown,
.id_table = s3c2410_wdt_ids,
.driver = {
.owner = THIS_MODULE,
.name = "s3c2410-wdt",
.pm = &s3c2410wdt_pm_ops,
.of_match_table = of_match_ptr(s3c2410_wdt_match),
......
......@@ -453,7 +453,6 @@ static struct platform_driver sch311x_wdt_driver = {
.remove = sch311x_wdt_remove,
.shutdown = sch311x_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
......@@ -303,7 +303,6 @@ static void sh_wdt_shutdown(struct platform_device *pdev)
static struct platform_driver sh_wdt_driver = {
.driver = {
.name = DRV_NAME,
.owner = THIS_MODULE,
},
.probe = sh_wdt_probe,
......
......@@ -210,7 +210,6 @@ MODULE_DEVICE_TABLE(of, sirfsoc_wdt_of_match);
static struct platform_driver sirfsoc_wdt_driver = {
.driver = {
.name = "sirfsoc-wdt",
.owner = THIS_MODULE,
.pm = &sirfsoc_wdt_pm_ops,
.of_match_table = sirfsoc_wdt_of_match,
},
......
......@@ -538,7 +538,6 @@ static struct platform_driver sp5100_tco_driver = {
.remove = sp5100_tco_remove,
.shutdown = sp5100_tco_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = TCO_MODULE_NAME,
},
};
......
......@@ -253,7 +253,6 @@ static struct platform_driver sunxi_wdt_driver = {
.remove = sunxi_wdt_remove,
.shutdown = sunxi_wdt_shutdown,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
.of_match_table = sunxi_wdt_dt_ids,
},
......
......@@ -289,7 +289,6 @@ static struct platform_driver tegra_wdt_driver = {
.probe = tegra_wdt_probe,
.remove = tegra_wdt_remove,
.driver = {
.owner = THIS_MODULE,
.name = "tegra-wdt",
.pm = &tegra_wdt_pm_ops,
.of_match_table = tegra_wdt_of_match,
......
......@@ -440,7 +440,6 @@ static struct platform_driver ts72xx_wdt_driver = {
.remove = ts72xx_wdt_remove,
.driver = {
.name = "ts72xx-wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -140,7 +140,6 @@ static struct platform_driver twl4030_wdt_driver = {
.suspend = twl4030_wdt_suspend,
.resume = twl4030_wdt_resume,
.driver = {
.owner = THIS_MODULE,
.name = "twl4030_wdt",
.of_match_table = twl_wdt_of_match,
},
......
......@@ -167,7 +167,6 @@ static struct platform_driver txx9wdt_driver = {
.shutdown = txx9wdt_shutdown,
.driver = {
.name = "txx9wdt",
.owner = THIS_MODULE,
},
};
......
......@@ -156,7 +156,6 @@ static struct platform_driver ux500_wdt_driver = {
.suspend = ux500_wdt_suspend,
.resume = ux500_wdt_resume,
.driver = {
.owner = THIS_MODULE,
.name = "ux500_wdt",
},
};
......
......@@ -320,7 +320,6 @@ static struct platform_driver xen_wdt_driver = {
.suspend = xen_wdt_suspend,
.resume = xen_wdt_resume,
.driver = {
.owner = THIS_MODULE,
.name = DRV_NAME,
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment