summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ltc2945.c
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javier@osg.samsung.com>2016-11-07 17:31:44 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-01-12 11:39:25 +0100
commitaf3cd3f0a805ab701f1e56ed93c676c77b7d2169 (patch)
tree5f392071002ca33fbd6a1d7688bc624faa99dfff /drivers/hwmon/ltc2945.c
parent7a13086bd4575738f385d062e3676e3b13af966c (diff)
hwmon: (scpi) Fix module autoload
commit 13edb767aa609b6efb7c0c2b57fbd72a6ded0eed upstream. If the driver is built as a module, autoload won't work because the module alias information is not filled. So user-space can't match the registered device with the corresponding module. Export the module alias information using the MODULE_DEVICE_TABLE() macro. Before this patch: $ modinfo drivers/hwmon/scpi-hwmon.ko | grep alias $ After this patch: $ modinfo drivers/hwmon/scpi-hwmon.ko | grep alias alias: of:N*T*Carm,scpi-sensorsC* alias: of:N*T*Carm,scpi-sensors Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Fixes: ea98b29a05e9c ("hwmon: Support sensors exported via ARM SCP interface") Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/hwmon/ltc2945.c')
0 files changed, 0 insertions, 0 deletions