power: supply: axp288_charger: Fix the module not auto-loading
authorHans de Goede <hdegoede@redhat.com>
Wed, 21 Dec 2016 14:36:57 +0000 (15:36 +0100)
committerSebastian Reichel <sre@kernel.org>
Wed, 4 Jan 2017 21:03:16 +0000 (22:03 +0100)
Add a MODULE_DEVICE_TABLE to fix the module not auto-loading.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/axp288_charger.c

index 6e588e69c5fc21c844538ddee2f2406fd29ccbd9..ca4fa5124a990ce6c47f4532473278290678f15d 100644 (file)
@@ -856,8 +856,15 @@ static int axp288_charger_probe(struct platform_device *pdev)
        return 0;
 }
 
+static const struct platform_device_id axp288_charger_id_table[] = {
+       { .name = "axp288_charger" },
+       {},
+};
+MODULE_DEVICE_TABLE(platform, axp288_charger_id_table);
+
 static struct platform_driver axp288_charger_driver = {
        .probe = axp288_charger_probe,
+       .id_table = axp288_charger_id_table,
        .driver = {
                .name = "axp288_charger",
        },