Commit dd3a55fc authored by Hans de Goede's avatar Hans de Goede Committed by Chanwoo Choi

extcon: axp288: Fix the module not auto-loading

Add a MODULE_DEVICE_TABLE to fix the module not auto-loading.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Acked-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent be174952
...@@ -318,8 +318,15 @@ static int axp288_extcon_probe(struct platform_device *pdev) ...@@ -318,8 +318,15 @@ static int axp288_extcon_probe(struct platform_device *pdev)
return 0; 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 = { static struct platform_driver axp288_extcon_driver = {
.probe = axp288_extcon_probe, .probe = axp288_extcon_probe,
.id_table = axp288_extcon_table,
.driver = { .driver = {
.name = "axp288_extcon", .name = "axp288_extcon",
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment