diff options
author | 2016-12-19 01:13:13 +0100 | |
---|---|---|
committer | 2017-01-09 10:04:10 +0900 | |
commit | dd3a55fc688b835b25fc73a16f17a75b6059858d (patch) | |
tree | 07d046039cb08c0d00ef4beb2cef0cdab5227bfc /drivers/extcon | |
parent | extcon: axp288: Remove unnecessary irq?_en register writes (diff) | |
download | linux-dd3a55fc688b835b25fc73a16f17a75b6059858d.tar.gz linux-dd3a55fc688b835b25fc73a16f17a75b6059858d.tar.bz2 linux-dd3a55fc688b835b25fc73a16f17a75b6059858d.zip |
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>
Diffstat (limited to 'drivers/extcon')
-rw-r--r-- | drivers/extcon/extcon-axp288.c | 7 |
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) 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", }, |