Commit ee7ebdf40260c6c5586f20cda5d253bc988e7baa

Authored by Ralf Baechle
Committed by Jeff Garzik
1 parent 23c2a7b5de

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/net/jazzsonic.c
... ... @@ -307,7 +307,7 @@
307 307 return 0;
308 308  
309 309 out_unregister:
310   - driver_unregister(&jazz_sonic_driver);
  310 + platform_driver_unregister(&jazz_sonic_driver);
311 311  
312 312 return -ENOMEM;
313 313 }