mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 16:48:38 -04:00
dt/powerpc: Eliminate users of of_platform_{,un}register_driver
Get rid of old users of of_platform_driver in arch/powerpc. Most of_platform_driver users can be converted to use the platform_bus directly. Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
This commit is contained in:
@@ -94,8 +94,7 @@ static struct hwrng pasemi_rng = {
|
||||
.data_read = pasemi_rng_data_read,
|
||||
};
|
||||
|
||||
static int __devinit rng_probe(struct platform_device *ofdev,
|
||||
const struct of_device_id *match)
|
||||
static int __devinit rng_probe(struct platform_device *ofdev)
|
||||
{
|
||||
void __iomem *rng_regs;
|
||||
struct device_node *rng_np = ofdev->dev.of_node;
|
||||
@@ -139,7 +138,7 @@ static struct of_device_id rng_match[] = {
|
||||
{ },
|
||||
};
|
||||
|
||||
static struct of_platform_driver rng_driver = {
|
||||
static struct platform_driver rng_driver = {
|
||||
.driver = {
|
||||
.name = "pasemi-rng",
|
||||
.owner = THIS_MODULE,
|
||||
@@ -151,13 +150,13 @@ static struct of_platform_driver rng_driver = {
|
||||
|
||||
static int __init rng_init(void)
|
||||
{
|
||||
return of_register_platform_driver(&rng_driver);
|
||||
return platform_driver_register(&rng_driver);
|
||||
}
|
||||
module_init(rng_init);
|
||||
|
||||
static void __exit rng_exit(void)
|
||||
{
|
||||
of_unregister_platform_driver(&rng_driver);
|
||||
platform_driver_unregister(&rng_driver);
|
||||
}
|
||||
module_exit(rng_exit);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user