X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fextcon%2Fextcon-axp288.c;h=fdb31954cf2b6f7346fda83fcf06e525cc381653;hb=a96fd1cc3ff3f9dd6f06140fc0b8c91342859450;hp=525345367260a855c597bf8db455ca95e8e04294;hpb=9b031c86506cef9acae45e61339fcf9deaabb793;p=linux-2.6-microblaze.git diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c index 525345367260..fdb31954cf2b 100644 --- a/drivers/extcon/extcon-axp288.c +++ b/drivers/extcon/extcon-axp288.c @@ -491,18 +491,7 @@ static struct platform_driver axp288_extcon_driver = { .pm = &axp288_extcon_pm_ops, }, }; - -static int __init axp288_extcon_init(void) -{ - return platform_driver_register(&axp288_extcon_driver); -} -module_init(axp288_extcon_init); - -static void __exit axp288_extcon_exit(void) -{ - platform_driver_unregister(&axp288_extcon_driver); -} -module_exit(axp288_extcon_exit); +module_platform_driver(axp288_extcon_driver); MODULE_AUTHOR("Ramakrishna Pallala "); MODULE_AUTHOR("Hans de Goede ");