]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/avr32/mach-at32ap/pio.c
avr32: Use platform_driver_probe for pio platform driver
[linux-2.6-omap-h63xx.git] / arch / avr32 / mach-at32ap / pio.c
index 90ef538ae547a47268e9470ff9e950d4f7159c61..ef2561e1539965d789eacadd2f06676e917f905d 100644 (file)
@@ -401,7 +401,6 @@ static int __init pio_probe(struct platform_device *pdev)
 }
 
 static struct platform_driver pio_driver = {
-       .probe          = pio_probe,
        .driver         = {
                .name           = "pio",
        },
@@ -409,7 +408,7 @@ static struct platform_driver pio_driver = {
 
 static int __init pio_init(void)
 {
-       return platform_driver_register(&pio_driver);
+       return platform_driver_probe(&pio_driver, pio_probe);
 }
 postcore_initcall(pio_init);