OSDN Git Service

extcon: axp288: Fix the module not auto-loading
authorHans de Goede <hdegoede@redhat.com>
Mon, 19 Dec 2016 00:13:13 +0000 (01:13 +0100)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 9 Jan 2017 01:04:10 +0000 (10:04 +0900)
Add a MODULE_DEVICE_TABLE to fix the module not auto-loading.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/extcon/extcon-axp288.c

index 0d3cf80..3e145e2 100644 (file)
@@ -318,8 +318,15 @@ static int axp288_extcon_probe(struct platform_device *pdev)
        return 0;
 }
 
+static const struct platform_device_id axp288_extcon_table[] = {
+       { .name = "axp288_extcon" },
+       {},
+};
+MODULE_DEVICE_TABLE(platform, axp288_extcon_table);
+
 static struct platform_driver axp288_extcon_driver = {
        .probe = axp288_extcon_probe,
+       .id_table = axp288_extcon_table,
        .driver = {
                .name = "axp288_extcon",
        },