Commit eff54802 authored by Wolfram Sang's avatar Wolfram Sang

char: hw_random: 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 06861ab5
...@@ -128,7 +128,6 @@ static struct platform_driver atmel_trng_driver = { ...@@ -128,7 +128,6 @@ static struct platform_driver atmel_trng_driver = {
.remove = atmel_trng_remove, .remove = atmel_trng_remove,
.driver = { .driver = {
.name = "atmel-trng", .name = "atmel-trng",
.owner = THIS_MODULE,
#ifdef CONFIG_PM #ifdef CONFIG_PM
.pm = &atmel_trng_pm_ops, .pm = &atmel_trng_pm_ops,
#endif /* CONFIG_PM */ #endif /* CONFIG_PM */
......
...@@ -99,7 +99,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match); ...@@ -99,7 +99,6 @@ MODULE_DEVICE_TABLE(of, bcm2835_rng_of_match);
static struct platform_driver bcm2835_rng_driver = { static struct platform_driver bcm2835_rng_driver = {
.driver = { .driver = {
.name = "bcm2835-rng", .name = "bcm2835-rng",
.owner = THIS_MODULE,
.of_match_table = bcm2835_rng_of_match, .of_match_table = bcm2835_rng_of_match,
}, },
.probe = bcm2835_rng_probe, .probe = bcm2835_rng_probe,
......
...@@ -162,7 +162,6 @@ static struct platform_driver bcm63xx_rng_driver = { ...@@ -162,7 +162,6 @@ static struct platform_driver bcm63xx_rng_driver = {
.remove = bcm63xx_rng_remove, .remove = bcm63xx_rng_remove,
.driver = { .driver = {
.name = "bcm63xx-rng", .name = "bcm63xx-rng",
.owner = THIS_MODULE,
}, },
}; };
......
...@@ -169,7 +169,6 @@ static UNIVERSAL_DEV_PM_OPS(exynos_rng_pm_ops, exynos_rng_runtime_suspend, ...@@ -169,7 +169,6 @@ static UNIVERSAL_DEV_PM_OPS(exynos_rng_pm_ops, exynos_rng_runtime_suspend,
static struct platform_driver exynos_rng_driver = { static struct platform_driver exynos_rng_driver = {
.driver = { .driver = {
.name = "exynos-rng", .name = "exynos-rng",
.owner = THIS_MODULE,
.pm = &exynos_rng_pm_ops, .pm = &exynos_rng_pm_ops,
}, },
.probe = exynos_rng_probe, .probe = exynos_rng_probe,
......
...@@ -185,7 +185,6 @@ static struct platform_driver msm_rng_driver = { ...@@ -185,7 +185,6 @@ static struct platform_driver msm_rng_driver = {
.remove = msm_rng_remove, .remove = msm_rng_remove,
.driver = { .driver = {
.name = KBUILD_MODNAME, .name = KBUILD_MODNAME,
.owner = THIS_MODULE,
.of_match_table = of_match_ptr(msm_rng_of_match), .of_match_table = of_match_ptr(msm_rng_of_match),
} }
}; };
......
...@@ -206,7 +206,6 @@ static int __exit mxc_rnga_remove(struct platform_device *pdev) ...@@ -206,7 +206,6 @@ static int __exit mxc_rnga_remove(struct platform_device *pdev)
static struct platform_driver mxc_rnga_driver = { static struct platform_driver mxc_rnga_driver = {
.driver = { .driver = {
.name = "mxc_rnga", .name = "mxc_rnga",
.owner = THIS_MODULE,
}, },
.remove = __exit_p(mxc_rnga_remove), .remove = __exit_p(mxc_rnga_remove),
}; };
......
...@@ -750,7 +750,6 @@ MODULE_DEVICE_TABLE(of, n2rng_match); ...@@ -750,7 +750,6 @@ MODULE_DEVICE_TABLE(of, n2rng_match);
static struct platform_driver n2rng_driver = { static struct platform_driver n2rng_driver = {
.driver = { .driver = {
.name = "n2rng", .name = "n2rng",
.owner = THIS_MODULE,
.of_match_table = n2rng_match, .of_match_table = n2rng_match,
}, },
.probe = n2rng_probe, .probe = n2rng_probe,
......
...@@ -117,7 +117,6 @@ static int __exit octeon_rng_remove(struct platform_device *pdev) ...@@ -117,7 +117,6 @@ static int __exit octeon_rng_remove(struct platform_device *pdev)
static struct platform_driver octeon_rng_driver = { static struct platform_driver octeon_rng_driver = {
.driver = { .driver = {
.name = "octeon_rng", .name = "octeon_rng",
.owner = THIS_MODULE,
}, },
.probe = octeon_rng_probe, .probe = octeon_rng_probe,
.remove = __exit_p(octeon_rng_remove), .remove = __exit_p(octeon_rng_remove),
......
...@@ -456,7 +456,6 @@ static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume); ...@@ -456,7 +456,6 @@ static SIMPLE_DEV_PM_OPS(omap_rng_pm, omap_rng_suspend, omap_rng_resume);
static struct platform_driver omap_rng_driver = { static struct platform_driver omap_rng_driver = {
.driver = { .driver = {
.name = "omap_rng", .name = "omap_rng",
.owner = THIS_MODULE,
.pm = OMAP_RNG_PM, .pm = OMAP_RNG_PM,
.of_match_table = of_match_ptr(omap_rng_of_match), .of_match_table = of_match_ptr(omap_rng_of_match),
}, },
......
...@@ -126,7 +126,6 @@ static int omap3_rom_rng_remove(struct platform_device *pdev) ...@@ -126,7 +126,6 @@ static int omap3_rom_rng_remove(struct platform_device *pdev)
static struct platform_driver omap3_rom_rng_driver = { static struct platform_driver omap3_rom_rng_driver = {
.driver = { .driver = {
.name = "omap3-rom-rng", .name = "omap3-rom-rng",
.owner = THIS_MODULE,
}, },
.probe = omap3_rom_rng_probe, .probe = omap3_rom_rng_probe,
.remove = omap3_rom_rng_remove, .remove = omap3_rom_rng_remove,
......
...@@ -142,7 +142,6 @@ static struct of_device_id rng_match[] = { ...@@ -142,7 +142,6 @@ static struct of_device_id rng_match[] = {
static struct platform_driver rng_driver = { static struct platform_driver rng_driver = {
.driver = { .driver = {
.name = "pasemi-rng", .name = "pasemi-rng",
.owner = THIS_MODULE,
.of_match_table = rng_match, .of_match_table = rng_match,
}, },
.probe = rng_probe, .probe = rng_probe,
......
...@@ -133,7 +133,6 @@ static struct of_device_id ppc4xx_rng_match[] = { ...@@ -133,7 +133,6 @@ static struct of_device_id ppc4xx_rng_match[] = {
static struct platform_driver ppc4xx_rng_driver = { static struct platform_driver ppc4xx_rng_driver = {
.driver = { .driver = {
.name = MODULE_NAME, .name = MODULE_NAME,
.owner = THIS_MODULE,
.of_match_table = ppc4xx_rng_match, .of_match_table = ppc4xx_rng_match,
}, },
.probe = ppc4xx_rng_probe, .probe = ppc4xx_rng_probe,
......
...@@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, timeriomem_rng_match); ...@@ -200,7 +200,6 @@ MODULE_DEVICE_TABLE(of, timeriomem_rng_match);
static struct platform_driver timeriomem_rng_driver = { static struct platform_driver timeriomem_rng_driver = {
.driver = { .driver = {
.name = "timeriomem_rng", .name = "timeriomem_rng",
.owner = THIS_MODULE,
.of_match_table = timeriomem_rng_match, .of_match_table = timeriomem_rng_match,
}, },
.probe = timeriomem_rng_probe, .probe = timeriomem_rng_probe,
......
...@@ -158,7 +158,6 @@ static int __exit tx4939_rng_remove(struct platform_device *dev) ...@@ -158,7 +158,6 @@ static int __exit tx4939_rng_remove(struct platform_device *dev)
static struct platform_driver tx4939_rng_driver = { static struct platform_driver tx4939_rng_driver = {
.driver = { .driver = {
.name = "tx4939-rng", .name = "tx4939-rng",
.owner = THIS_MODULE,
}, },
.remove = tx4939_rng_remove, .remove = tx4939_rng_remove,
}; };
......
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