diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-10-17 17:05:42 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-17 20:03:02 +0300 |
commit | a7deb924d33b5688b11e34e84c88f2591f933e3a (patch) | |
tree | 4c1d25259900bf4dccf6a93c3e6960214afb6d47 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 2fa3e317e6c89fc89e96a48308f6791f74fcea3c (diff) | |
download | linux-a7deb924d33b5688b11e34e84c88f2591f933e3a.tar.xz |
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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions