From: Ralf Baechle Date: Tue, 22 Nov 2005 00:19:44 +0000 (+0000) Subject: [PATCH] jazzsonic: Fix platform device code X-Git-Tag: v2.6.15-rc5~20^2~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee7ebdf40260c6c5586f20cda5d253bc988e7baa;p=linux-2.6 [PATCH] jazzsonic: Fix platform device code Use platform_driver_unregister not driver_unregister to unregister a struct platform_driver. Signed-off-by: Ralf Baechle Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c index e1151d0038..272d331d29 100644 --- a/drivers/net/jazzsonic.c +++ b/drivers/net/jazzsonic.c @@ -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; }