• Javier Martinez Canillas's avatar
    bus: arm-ccn: Fix module autoload · 60aba820
    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/bus/arm-ccn.ko | grep alias
    $
    
    After this patch:
    
    $ modinfo drivers/bus/arm-ccn.ko | grep alias
    alias:          of:N*T*Carm,ccn-504C*
    alias:          of:N*T*Carm,ccn-504
    Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
    Signed-off-by: default avatarPawel Moll <pawel.moll@arm.com>
    60aba820
arm-ccn.c 46.3 KB