Merge tag 'for-linus-5.10-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/rw...
[linux-2.6-microblaze.git] / drivers / extcon / extcon-axp288.c
index 5253453..fdb3195 100644 (file)
@@ -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 <ramakrishna.pallala@intel.com>");
 MODULE_AUTHOR("Hans de Goede <hdegoede@redhat.com>");