summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-06-05 09:21:54 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-07-20 16:10:48 +0200
commit658884b22ac88b591b21b66d02f2cabf012dccec (patch)
tree6b3d858f33ec912e1b4746dffd17a276b2a70412 /drivers/power
parentae1a6af2f8f85f44aeb80f0a14bbbfc9bdd2efb6 (diff)
downloadlinux-658884b22ac88b591b21b66d02f2cabf012dccec.tar.gz
linux-658884b22ac88b591b21b66d02f2cabf012dccec.tar.bz2
linux-658884b22ac88b591b21b66d02f2cabf012dccec.zip
power: supply: charger-manager: add missing MODULE_DEVICE_TABLE
[ Upstream commit 073b5d5b1f9cc94a3eea25279fbafee3f4f5f097 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/charger-manager.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/charger-manager.c b/drivers/power/supply/charger-manager.c
index a21e1a2673f8..1a215b6d9447 100644
--- a/drivers/power/supply/charger-manager.c
+++ b/drivers/power/supply/charger-manager.c
@@ -1470,6 +1470,7 @@ static const struct of_device_id charger_manager_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, charger_manager_match);
static struct charger_desc *of_cm_parse_desc(struct device *dev)
{