diff options
author | Hans de Goede <hdegoede@redhat.com> | 2016-12-21 17:36:57 +0300 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2017-01-05 00:03:16 +0300 |
commit | 7def63ca9cb2ba89a80669dd0bef0e8edfae25d4 (patch) | |
tree | 22b8b485fb07a97605231a1d09feba1655f84a7c /drivers/power | |
parent | 620874c2df596e51922916a0b61cd1b1e5b8504a (diff) | |
download | linux-7def63ca9cb2ba89a80669dd0bef0e8edfae25d4.tar.xz |
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>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/axp288_charger.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/power/supply/axp288_charger.c b/drivers/power/supply/axp288_charger.c index 6e588e69c5fc..ca4fa5124a99 100644 --- a/drivers/power/supply/axp288_charger.c +++ b/drivers/power/supply/axp288_charger.c @@ -856,8 +856,15 @@ static int axp288_charger_probe(struct platform_device *pdev) 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 = { .probe = axp288_charger_probe, + .id_table = axp288_charger_id_table, .driver = { .name = "axp288_charger", }, |