mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
hwrng: drivers - Switch back to struct platform_driver::remove()
After commit 0edb555a65
("platform: Make platform_driver::remove()
return void") .remove() is (again) the right callback to implement for
platform drivers.
Convert all platform drivers below drivers/char/hw_random to use
.remove(), with the eventual goal to drop struct
platform_driver::remove_new(). As .remove() and .remove_new() have the
same prototypes, conversion is done by just changing the structure
member name in the driver initializer.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d186faa307
commit
d11c8b87a3
@ -216,7 +216,7 @@ MODULE_DEVICE_TABLE(of, atmel_trng_dt_ids);
|
|||||||
|
|
||||||
static struct platform_driver atmel_trng_driver = {
|
static struct platform_driver atmel_trng_driver = {
|
||||||
.probe = atmel_trng_probe,
|
.probe = atmel_trng_probe,
|
||||||
.remove_new = atmel_trng_remove,
|
.remove = atmel_trng_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "atmel-trng",
|
.name = "atmel-trng",
|
||||||
.pm = pm_ptr(&atmel_trng_pm_ops),
|
.pm = pm_ptr(&atmel_trng_pm_ops),
|
||||||
|
@ -653,7 +653,7 @@ static struct platform_driver cctrng_driver = {
|
|||||||
.pm = &cctrng_pm,
|
.pm = &cctrng_pm,
|
||||||
},
|
},
|
||||||
.probe = cctrng_probe,
|
.probe = cctrng_probe,
|
||||||
.remove_new = cctrng_remove,
|
.remove = cctrng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(cctrng_driver);
|
module_platform_driver(cctrng_driver);
|
||||||
|
@ -335,7 +335,7 @@ static struct platform_driver exynos_trng_driver = {
|
|||||||
.of_match_table = exynos_trng_dt_match,
|
.of_match_table = exynos_trng_dt_match,
|
||||||
},
|
},
|
||||||
.probe = exynos_trng_probe,
|
.probe = exynos_trng_probe,
|
||||||
.remove_new = exynos_trng_remove,
|
.remove = exynos_trng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(exynos_trng_driver);
|
module_platform_driver(exynos_trng_driver);
|
||||||
|
@ -132,7 +132,7 @@ MODULE_DEVICE_TABLE(of, ingenic_rng_of_match);
|
|||||||
|
|
||||||
static struct platform_driver ingenic_rng_driver = {
|
static struct platform_driver ingenic_rng_driver = {
|
||||||
.probe = ingenic_rng_probe,
|
.probe = ingenic_rng_probe,
|
||||||
.remove_new = ingenic_rng_remove,
|
.remove = ingenic_rng_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "ingenic-rng",
|
.name = "ingenic-rng",
|
||||||
.of_match_table = ingenic_rng_of_match,
|
.of_match_table = ingenic_rng_of_match,
|
||||||
|
@ -261,7 +261,7 @@ static struct platform_driver ks_sa_rng_driver = {
|
|||||||
.of_match_table = ks_sa_rng_dt_match,
|
.of_match_table = ks_sa_rng_dt_match,
|
||||||
},
|
},
|
||||||
.probe = ks_sa_rng_probe,
|
.probe = ks_sa_rng_probe,
|
||||||
.remove_new = ks_sa_rng_remove,
|
.remove = ks_sa_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(ks_sa_rng_driver);
|
module_platform_driver(ks_sa_rng_driver);
|
||||||
|
@ -188,7 +188,7 @@ static struct platform_driver mxc_rnga_driver = {
|
|||||||
.of_match_table = mxc_rnga_of_match,
|
.of_match_table = mxc_rnga_of_match,
|
||||||
},
|
},
|
||||||
.probe = mxc_rnga_probe,
|
.probe = mxc_rnga_probe,
|
||||||
.remove_new = mxc_rnga_remove,
|
.remove = mxc_rnga_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(mxc_rnga_driver);
|
module_platform_driver(mxc_rnga_driver);
|
||||||
|
@ -858,7 +858,7 @@ static struct platform_driver n2rng_driver = {
|
|||||||
.of_match_table = n2rng_match,
|
.of_match_table = n2rng_match,
|
||||||
},
|
},
|
||||||
.probe = n2rng_probe,
|
.probe = n2rng_probe,
|
||||||
.remove_new = n2rng_remove,
|
.remove = n2rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(n2rng_driver);
|
module_platform_driver(n2rng_driver);
|
||||||
|
@ -176,7 +176,7 @@ static struct platform_driver npcm_rng_driver = {
|
|||||||
.of_match_table = of_match_ptr(rng_dt_id),
|
.of_match_table = of_match_ptr(rng_dt_id),
|
||||||
},
|
},
|
||||||
.probe = npcm_rng_probe,
|
.probe = npcm_rng_probe,
|
||||||
.remove_new = npcm_rng_remove,
|
.remove = npcm_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(npcm_rng_driver);
|
module_platform_driver(npcm_rng_driver);
|
||||||
|
@ -558,7 +558,7 @@ static struct platform_driver omap_rng_driver = {
|
|||||||
.of_match_table = of_match_ptr(omap_rng_of_match),
|
.of_match_table = of_match_ptr(omap_rng_of_match),
|
||||||
},
|
},
|
||||||
.probe = omap_rng_probe,
|
.probe = omap_rng_probe,
|
||||||
.remove_new = omap_rng_remove,
|
.remove = omap_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(omap_rng_driver);
|
module_platform_driver(omap_rng_driver);
|
||||||
|
@ -603,7 +603,7 @@ static struct platform_driver stm32_rng_driver = {
|
|||||||
.of_match_table = stm32_rng_match,
|
.of_match_table = stm32_rng_match,
|
||||||
},
|
},
|
||||||
.probe = stm32_rng_probe,
|
.probe = stm32_rng_probe,
|
||||||
.remove_new = stm32_rng_remove,
|
.remove = stm32_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(stm32_rng_driver);
|
module_platform_driver(stm32_rng_driver);
|
||||||
|
@ -193,7 +193,7 @@ static struct platform_driver timeriomem_rng_driver = {
|
|||||||
.of_match_table = timeriomem_rng_match,
|
.of_match_table = timeriomem_rng_match,
|
||||||
},
|
},
|
||||||
.probe = timeriomem_rng_probe,
|
.probe = timeriomem_rng_probe,
|
||||||
.remove_new = timeriomem_rng_remove,
|
.remove = timeriomem_rng_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
module_platform_driver(timeriomem_rng_driver);
|
module_platform_driver(timeriomem_rng_driver);
|
||||||
|
@ -375,7 +375,7 @@ MODULE_DEVICE_TABLE(of, xgene_rng_of_match);
|
|||||||
|
|
||||||
static struct platform_driver xgene_rng_driver = {
|
static struct platform_driver xgene_rng_driver = {
|
||||||
.probe = xgene_rng_probe,
|
.probe = xgene_rng_probe,
|
||||||
.remove_new = xgene_rng_remove,
|
.remove = xgene_rng_remove,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "xgene-rng",
|
.name = "xgene-rng",
|
||||||
.of_match_table = xgene_rng_of_match,
|
.of_match_table = xgene_rng_of_match,
|
||||||
|
Loading…
Reference in New Issue
Block a user