diff options
author | Zou Wei <zou_wei@huawei.com> | 2021-05-11 08:17:12 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2021-05-13 18:24:22 +0200 |
commit | 2aac79d14d76879c8e307820b31876e315b1b242 (patch) | |
tree | d66a79ee0aeac70c6184334580b5c0d634b0b6eb /drivers/power | |
parent | power: supply: sc27xx: Add missing MODULE_DEVICE_TABLE (diff) | |
download | linux-2aac79d14d76879c8e307820b31876e315b1b242.tar.xz linux-2aac79d14d76879c8e307820b31876e315b1b242.zip |
power: supply: sc2731_charger: Add missing MODULE_DEVICE_TABLE
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/sc2731_charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/sc2731_charger.c b/drivers/power/supply/sc2731_charger.c index 335cb857ef30..288b79836c13 100644 --- a/drivers/power/supply/sc2731_charger.c +++ b/drivers/power/supply/sc2731_charger.c @@ -524,6 +524,7 @@ static const struct of_device_id sc2731_charger_of_match[] = { { .compatible = "sprd,sc2731-charger", }, { } }; +MODULE_DEVICE_TABLE(of, sc2731_charger_of_match); static struct platform_driver sc2731_charger_driver = { .driver = { |