Skip to content

Commit

Permalink
[PATCH] jazzsonic: Fix platform device code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle authored and Jeff Garzik committed Dec 1, 2005
1 parent 23c2a7b commit ee7ebdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/jazzsonic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ee7ebdf

Please sign in to comment.