aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2016-12-18 19:13:13 -0500
committerChanwoo Choi <cw00.choi@samsung.com>2017-01-08 20:04:10 -0500
commitdd3a55fc688b835b25fc73a16f17a75b6059858d (patch)
tree07d046039cb08c0d00ef4beb2cef0cdab5227bfc
parentbe1749528ea847c4a969b499fad8c4f98c44fac1 (diff)
extcon: axp288: Fix the module not auto-loading
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>
-rw-r--r--drivers/extcon/extcon-axp288.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/extcon/extcon-axp288.c b/drivers/extcon/extcon-axp288.c
index 0d3cf808539f..3e145e2a4860 100644
--- a/drivers/extcon/extcon-axp288.c
+++ b/drivers/extcon/extcon-axp288.c
@@ -318,8 +318,15 @@ static int axp288_extcon_probe(struct platform_device *pdev)
318 return 0; 318 return 0;
319} 319}
320 320
321static const struct platform_device_id axp288_extcon_table[] = {
322 { .name = "axp288_extcon" },
323 {},
324};
325MODULE_DEVICE_TABLE(platform, axp288_extcon_table);
326
321static struct platform_driver axp288_extcon_driver = { 327static struct platform_driver axp288_extcon_driver = {
322 .probe = axp288_extcon_probe, 328 .probe = axp288_extcon_probe,
329 .id_table = axp288_extcon_table,
323 .driver = { 330 .driver = {
324 .name = "axp288_extcon", 331 .name = "axp288_extcon",
325 }, 332 },