alistair23-linux/drivers/net/dsa/b53
Javier Martinez Canillas 03eaae5253 net: dsa: b53: Fix module autoload
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/dsa/b53/b53_mmap.ko  | grep alias
$

After this patch:

$ modinfo drivers/net/dsa/b53/b53_mmap.ko  | grep alias
alias:          of:N*T*Cbrcm,bcm63xx-switchC*
alias:          of:N*T*Cbrcm,bcm63xx-switch
alias:          of:N*T*Cbrcm,bcm6368-switchC*
alias:          of:N*T*Cbrcm,bcm6368-switch
alias:          of:N*T*Cbrcm,bcm6328-switchC*
alias:          of:N*T*Cbrcm,bcm6328-switch
alias:          of:N*T*Cbrcm,bcm3384-switchC*
alias:          of:N*T*Cbrcm,bcm3384-switch

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-17 13:03:03 -04:00
..
b53_common.c net: dsa: b53: implement DSA port fast ageing 2016-09-23 08:38:50 -04:00
b53_mdio.c net: dsa: b53: constify b53_io_ops structures 2016-08-09 15:09:40 -07:00
b53_mmap.c net: dsa: b53: Fix module autoload 2016-10-17 13:03:03 -04:00
b53_priv.h net: dsa: b53: Remove unused including <linux/version.h> 2016-09-16 04:25:50 -04:00
b53_regs.h net: dsa: b53: Add JOIN_ALL_VLAN support 2016-08-26 13:15:48 -07:00
b53_spi.c net: dsa: b53: remove .owner and .bus fields for driver 2016-08-14 21:24:25 -07:00
b53_srab.c net: dsa: b53: constify b53_io_ops structures 2016-08-09 15:09:40 -07:00
Kconfig
Makefile