power: supply: axp288_charger: 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> Signed-off-by: Sebastian Reichel <sre@kernel.org>zero-colors
parent
620874c2df
commit
7def63ca9c
|
@ -856,8 +856,15 @@ static int axp288_charger_probe(struct platform_device *pdev)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static const struct platform_device_id axp288_charger_id_table[] = {
|
||||||
|
{ .name = "axp288_charger" },
|
||||||
|
{},
|
||||||
|
};
|
||||||
|
MODULE_DEVICE_TABLE(platform, axp288_charger_id_table);
|
||||||
|
|
||||||
static struct platform_driver axp288_charger_driver = {
|
static struct platform_driver axp288_charger_driver = {
|
||||||
.probe = axp288_charger_probe,
|
.probe = axp288_charger_probe,
|
||||||
|
.id_table = axp288_charger_id_table,
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = "axp288_charger",
|
.name = "axp288_charger",
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue