Skip to content
  • Javier Martinez Canillas's avatar
    hwmon: (scpi) Fix module autoload · 13edb767
    Javier Martinez Canillas authored
    
    
    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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
    Fixes: ea98b29a
    
     ("hwmon: Support sensors exported via ARM SCP interface")
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    13edb767