]> Pileus Git - ~andy/linux/blobdiff - drivers/power/pcf50633-charger.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/gerg/m68knommu
[~andy/linux] / drivers / power / pcf50633-charger.c
index 4fa52e1781a225e5bad152a6dd9a6c5e76752503..3d1e9efb6f53bfcd9dd03f675e1518e6ab7ffb5e 100644 (file)
@@ -474,17 +474,7 @@ static struct platform_driver pcf50633_mbc_driver = {
        .remove = __devexit_p(pcf50633_mbc_remove),
 };
 
-static int __init pcf50633_mbc_init(void)
-{
-       return platform_driver_register(&pcf50633_mbc_driver);
-}
-module_init(pcf50633_mbc_init);
-
-static void __exit pcf50633_mbc_exit(void)
-{
-       platform_driver_unregister(&pcf50633_mbc_driver);
-}
-module_exit(pcf50633_mbc_exit);
+module_platform_driver(pcf50633_mbc_driver);
 
 MODULE_AUTHOR("Balaji Rao <balajirrao@openmoko.org>");
 MODULE_DESCRIPTION("PCF50633 mbc driver");