]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] jazzsonic: Fix platform device code
authorRalf Baechle <ralf@linux-mips.org>
Tue, 22 Nov 2005 00:19:44 +0000 (00:19 +0000)
committerJeff Garzik <jgarzik@pobox.com>
Thu, 1 Dec 2005 07:26:46 +0000 (02:26 -0500)
Use platform_driver_unregister not driver_unregister to unregister a
struct platform_driver.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/jazzsonic.c

index e1151d00388e3cb5bc9f408df179a2644b7736ac..272d331d29cd5a6a6363861ca0b1f91cba5ca33a 100644 (file)
@@ -307,7 +307,7 @@ static int __init jazz_sonic_init_module(void)
        return 0;
 
 out_unregister:
-       driver_unregister(&jazz_sonic_driver);
+       platform_driver_unregister(&jazz_sonic_driver);
 
        return -ENOMEM;
 }