linux/drivers/net/ethernet/hisilicon
Javier Martinez Canillas af40097e3e net: hisilicon: Fix hns_mdio module autoload for OF registration
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/hisilicon//hns_mdio.ko | grep alias
alias:          platform:Hi-HNS_MDIO
alias:          acpi*:HISI0141:*

After this patch:

$ modinfo drivers/net/ethernet/hisilicon//hns_mdio.ko | grep alias
alias:          platform:Hi-HNS_MDIO
alias:          of:N*T*Chisilicon,hns-mdioC*
alias:          of:N*T*Chisilicon,hns-mdio
alias:          of:N*T*Chisilicon,mdioC*
alias:          of:N*T*Chisilicon,mdio
alias:          acpi*:HISI0141:*

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
..
hns net: hns: Fix hns_dsaf module autoload for OF registration 2016-10-17 13:03:02 -04:00
hip04_eth.c net: hip04: mark tx_done() static 2016-09-26 02:23:39 -04:00
hisi_femac.c net: hisilicon: mark symbols static where possible 2016-09-26 02:23:39 -04:00
hix5hd2_gmac.c net: hisilicon: constify ethtool_ops structures 2016-08-31 09:22:31 -07:00
hns_mdio.c net: hisilicon: Fix hns_mdio module autoload for OF registration 2016-10-17 13:03:03 -04:00
Kconfig net: hisilicon: Add Fast Ethernet MAC driver 2016-07-16 21:32:58 -07:00
Makefile net: hisilicon: Add Fast Ethernet MAC driver 2016-07-16 21:32:58 -07:00