提交 dd3a55fc 编写于 作者: H Hans de Goede 提交者: 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: NHans de Goede <hdegoede@redhat.com>
Acked-by: NChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: NChanwoo Choi <cw00.choi@samsung.com>
上级 be174952
......@@ -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",
},
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册