dt/sparc: Eliminate users of of_platform_{,un}register_driver

Get rid of old users of of_platform_driver in arch/sparc.  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:
Grant Likely 2011-02-22 20:01:33 -07:00
parent 000061245a
commit 4ebb24f707
27 changed files with 133 additions and 148 deletions

View file

@ -455,8 +455,7 @@ static int __devinit pci_fire_pbm_init(struct pci_pbm_info *pbm,
return 0;
}
static int __devinit fire_probe(struct platform_device *op,
const struct of_device_id *match)
static int __devinit fire_probe(struct platform_device *op)
{
struct device_node *dp = op->dev.of_node;
struct pci_pbm_info *pbm;
@ -507,7 +506,7 @@ static struct of_device_id __initdata fire_match[] = {
{},
};
static struct of_platform_driver fire_driver = {
static struct platform_driver fire_driver = {
.driver = {
.name = DRIVER_NAME,
.owner = THIS_MODULE,
@ -518,7 +517,7 @@ static struct of_platform_driver fire_driver = {
static int __init fire_init(void)
{
return of_register_platform_driver(&fire_driver);
return platform_driver_register(&fire_driver);
}
subsys_initcall(fire_init);