Skip to content

Commit dfe52db

Browse files
SamuelZOUsre
authored andcommitted
power: supply: ab8500: 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 <[email protected]> Signed-off-by: Zou Wei <[email protected]> Signed-off-by: Sebastian Reichel <[email protected]>
1 parent 073b5d5 commit dfe52db

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

drivers/power/supply/ab8500_btemp.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,7 @@ static const struct of_device_id ab8500_btemp_match[] = {
10971097
{ .compatible = "stericsson,ab8500-btemp", },
10981098
{ },
10991099
};
1100+
MODULE_DEVICE_TABLE(of, ab8500_btemp_match);
11001101

11011102
struct platform_driver ab8500_btemp_driver = {
11021103
.probe = ab8500_btemp_probe,

drivers/power/supply/ab8500_charger.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3705,6 +3705,7 @@ static const struct of_device_id ab8500_charger_match[] = {
37053705
{ .compatible = "stericsson,ab8500-charger", },
37063706
{ },
37073707
};
3708+
MODULE_DEVICE_TABLE(of, ab8500_charger_match);
37083709

37093710
static struct platform_driver ab8500_charger_driver = {
37103711
.probe = ab8500_charger_probe,

drivers/power/supply/ab8500_fg.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3212,6 +3212,7 @@ static const struct of_device_id ab8500_fg_match[] = {
32123212
{ .compatible = "stericsson,ab8500-fg", },
32133213
{ },
32143214
};
3215+
MODULE_DEVICE_TABLE(of, ab8500_fg_match);
32153216

32163217
struct platform_driver ab8500_fg_driver = {
32173218
.probe = ab8500_fg_probe,

0 commit comments

Comments
 (0)