power: supply: ab8500: add missing MODULE_DEVICE_TABLE
[ Upstream commit dfe52db13ab8d24857a9840ec7ca75eef800c26c ] 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>
This commit is contained in:
parent
87d03711db
commit
6e4199c166
@ -1120,6 +1120,7 @@ static const struct of_device_id ab8500_btemp_match[] = {
|
|||||||
{ .compatible = "stericsson,ab8500-btemp", },
|
{ .compatible = "stericsson,ab8500-btemp", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, ab8500_btemp_match);
|
||||||
|
|
||||||
static struct platform_driver ab8500_btemp_driver = {
|
static struct platform_driver ab8500_btemp_driver = {
|
||||||
.probe = ab8500_btemp_probe,
|
.probe = ab8500_btemp_probe,
|
||||||
|
@ -3639,6 +3639,7 @@ static const struct of_device_id ab8500_charger_match[] = {
|
|||||||
{ .compatible = "stericsson,ab8500-charger", },
|
{ .compatible = "stericsson,ab8500-charger", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, ab8500_charger_match);
|
||||||
|
|
||||||
static struct platform_driver ab8500_charger_driver = {
|
static struct platform_driver ab8500_charger_driver = {
|
||||||
.probe = ab8500_charger_probe,
|
.probe = ab8500_charger_probe,
|
||||||
|
@ -3221,6 +3221,7 @@ static const struct of_device_id ab8500_fg_match[] = {
|
|||||||
{ .compatible = "stericsson,ab8500-fg", },
|
{ .compatible = "stericsson,ab8500-fg", },
|
||||||
{ },
|
{ },
|
||||||
};
|
};
|
||||||
|
MODULE_DEVICE_TABLE(of, ab8500_fg_match);
|
||||||
|
|
||||||
static struct platform_driver ab8500_fg_driver = {
|
static struct platform_driver ab8500_fg_driver = {
|
||||||
.probe = ab8500_fg_probe,
|
.probe = ab8500_fg_probe,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user