• Javier Martinez Canillas's avatar
    net: ethernet: nb8800: Fix module autoload · 2fa3e317
    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/net/ethernet/aurora/nb8800.ko | grep alias
    $
    
    After this patch:
    
    $ modinfo drivers/net/ethernet/aurora/nb8800.ko | grep alias
    alias:          of:N*T*Csigma,smp8734-ethernetC*
    alias:          of:N*T*Csigma,smp8734-ethernet
    alias:          of:N*T*Csigma,smp8642-ethernetC*
    alias:          of:N*T*Csigma,smp8642-ethernet
    alias:          of:N*T*Caurora,nb8800C*
    alias:          of:N*T*Caurora,nb8800
    Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
    Acked-by: default avatarMans Rullgard <mans@mansr.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    2fa3e317
nb8800.c 35.2 KB