linux/drivers/net/ethernet/hisilicon/hns
Javier Martinez Canillas a7deb924d3 net: hns: Fix hns_dsaf 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/hns_dsaf.ko | grep alias
alias:          acpi*:HISI00B2:*
alias:          acpi*:HISI00B1:*

After this patch:

$ modinfo drivers/net/ethernet/hisilicon/hns/hns_dsaf.ko | grep alias
alias:          acpi*:HISI00B2:*
alias:          acpi*:HISI00B1:*
alias:          of:N*T*Chisilicon,hns-dsaf-v2C*
alias:          of:N*T*Chisilicon,hns-dsaf-v2
alias:          of:N*T*Chisilicon,hns-dsaf-v1C*
alias:          of:N*T*Chisilicon,hns-dsaf-v1

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2016-10-17 13:03:02 -04:00
..
hnae.c net: hns: delete redundancy ring enable operations 2016-06-21 04:51:55 -04:00
hnae.h net: hns: add media-type property for hns 2016-07-01 16:56:52 -04:00
hns_ae_adapt.c net: hns: add media-type property for hns 2016-07-01 16:56:52 -04:00
hns_dsaf_gmac.c net: hns: fix typo in g_gmac_stats_string[] 2016-08-10 17:57:50 -07:00
hns_dsaf_gmac.h
hns_dsaf_mac.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2016-10-11 08:10:19 -07:00
hns_dsaf_mac.h net: hns: add media-type property for hns 2016-07-01 16:56:52 -04:00
hns_dsaf_main.c net: hns: Fix hns_dsaf module autoload for OF registration 2016-10-17 13:03:02 -04:00
hns_dsaf_main.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_misc.c net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_misc.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_ppe.c net: hns: dereference ppe_cb->ppe_common_cb if it is non-null 2016-08-26 11:44:56 -07:00
hns_dsaf_ppe.h net: hns: separate debug dsaf device from service dsaf device 2016-04-26 01:09:17 -04:00
hns_dsaf_rcb.c net: hns: change the default coalesce usecs 2016-06-21 04:51:56 -04:00
hns_dsaf_rcb.h net: hns: change the default coalesce usecs 2016-06-21 04:51:56 -04:00
hns_dsaf_reg.h net: hns: Add support of ACPI to HNS driver RoCE Reset function 2016-08-25 10:05:10 -04:00
hns_dsaf_xgmac.c net: hns: add dsaf misc operation method 2016-06-04 21:32:41 -04:00
hns_dsaf_xgmac.h
hns_enet.c net: ethernet: hisilicon: hns: use phydev from struct net_device 2016-09-22 02:11:40 -04:00
hns_enet.h net: ethernet: hisilicon: hns: use phydev from struct net_device 2016-09-22 02:11:40 -04:00
hns_ethtool.c net: ethernet: hisilicon: hns: use new api ethtool_{get|set}_link_ksettings 2016-09-22 02:11:40 -04:00
Makefile net: add Hisilicon Network Subsystem basic ethernet support 2015-09-20 21:42:58 -07:00