[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>
This commit is contained in:
parent
23c2a7b5de
commit
ee7ebdf402
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user