dt/sparc: Eliminate users of of_platform_{,un}register_driver
[deliverable/linux.git] / arch / sparc / kernel / pmc.c
index 94536a85f16110f69aa89520f574404bc2438daa..93d7b4465f8d2493dc542d0e836ac255182e25f2 100644 (file)
@@ -51,8 +51,7 @@ static void pmc_swift_idle(void)
 #endif
 }
 
-static int __devinit pmc_probe(struct platform_device *op,
-                              const struct of_device_id *match)
+static int __devinit pmc_probe(struct platform_device *op)
 {
        regs = of_ioremap(&op->resource[0], 0,
                          resource_size(&op->resource[0]), PMC_OBPNAME);
@@ -78,7 +77,7 @@ static struct of_device_id __initdata pmc_match[] = {
 };
 MODULE_DEVICE_TABLE(of, pmc_match);
 
-static struct of_platform_driver pmc_driver = {
+static struct platform_driver pmc_driver = {
        .driver = {
                .name = "pmc",
                .owner = THIS_MODULE,
@@ -89,7 +88,7 @@ static struct of_platform_driver pmc_driver = {
 
 static int __init pmc_init(void)
 {
-       return of_register_platform_driver(&pmc_driver);
+       return platform_driver_register(&pmc_driver);
 }
 
 /* This driver is not critical to the boot process
This page took 0.034543 seconds and 5 git commands to generate.