aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-11-21 19:19:44 -0500
committerJeff Garzik <jgarzik@pobox.com>2005-12-01 02:26:46 -0500
commitee7ebdf40260c6c5586f20cda5d253bc988e7baa (patch)
tree23ab0c888dd77e6c2d0a141f712e1570060bd48d
parent23c2a7b5dea983c7cee2813817409552f9714e95 (diff)
[PATCH] jazzsonic: Fix platform device code
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>
-rw-r--r--drivers/net/jazzsonic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/jazzsonic.c b/drivers/net/jazzsonic.c
index e1151d00388e..272d331d29cd 100644
--- a/drivers/net/jazzsonic.c
+++ b/drivers/net/jazzsonic.c
@@ -307,7 +307,7 @@ static int __init jazz_sonic_init_module(void)
307 return 0; 307 return 0;
308 308
309out_unregister: 309out_unregister:
310 driver_unregister(&jazz_sonic_driver); 310 platform_driver_unregister(&jazz_sonic_driver);
311 311
312 return -ENOMEM; 312 return -ENOMEM;
313} 313}