Skip to content

Commit d07f05f

Browse files
nullr0uteffainelli
authored andcommitted
hwmon: rpi: add module alias to raspberrypi-hwmon
The raspberrypi-hwmon driver doesn't automatically load, although it does work when loaded, by adding the alias it auto loads as expected when built as a module. Tested on RPi2/RPi3 on 32 bit kernel and RPi3B+ on aarch64 with Fedora 28 and a patched 4.18 RC kernel. Fixes: 3c493c8 ("hwmon: Add support for RPi voltage sensor") Signed-off-by: Peter Robinson <pbrobinson@gmail.com> CC: Stefan Wahren <stefan.wahren@i2se.com> CC: Eric Anholt <eric@anholt.net> Acked-by: Guenter Roeck <linux@roeck-us.net> Tested-by: Stefan Wahren <stefan.wahren@i2se.com> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
1 parent 5b394b2 commit d07f05f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/hwmon/raspberrypi-hwmon.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,4 @@ module_platform_driver(rpi_hwmon_driver);
164164
MODULE_AUTHOR("Stefan Wahren <stefan.wahren@i2se.com>");
165165
MODULE_DESCRIPTION("Raspberry Pi voltage sensor driver");
166166
MODULE_LICENSE("GPL v2");
167+
MODULE_ALIAS("platform:raspberrypi-hwmon");

0 commit comments

Comments
 (0)