forked from Minki/linux
a7deb924d3
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> |
||
---|---|---|
.. | ||
hnae.c | ||
hnae.h | ||
hns_ae_adapt.c | ||
hns_dsaf_gmac.c | ||
hns_dsaf_gmac.h | ||
hns_dsaf_mac.c | ||
hns_dsaf_mac.h | ||
hns_dsaf_main.c | ||
hns_dsaf_main.h | ||
hns_dsaf_misc.c | ||
hns_dsaf_misc.h | ||
hns_dsaf_ppe.c | ||
hns_dsaf_ppe.h | ||
hns_dsaf_rcb.c | ||
hns_dsaf_rcb.h | ||
hns_dsaf_reg.h | ||
hns_dsaf_xgmac.c | ||
hns_dsaf_xgmac.h | ||
hns_enet.c | ||
hns_enet.h | ||
hns_ethtool.c | ||
Makefile |