mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-04-02 12:23:49 +00:00
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>
This commit is contained in:
parent
be1749528e
commit
dd3a55fc68
1 changed files with 7 additions and 0 deletions
|
@ -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",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue