diff options
author | Javier Martinez Canillas <javier@osg.samsung.com> | 2016-10-17 11:05:41 -0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-17 13:03:02 -0400 |
commit | 2fa3e317e6c89fc89e96a48308f6791f74fcea3c (patch) | |
tree | f9368e97108170e185255b49d0de2c51fdfbf645 /drivers/net/ethernet/aurora | |
parent | fc971a2f2383950ddedb1e4896c5ead5d2357029 (diff) | |
download | talos-obmc-linux-2fa3e317e6c89fc89e96a48308f6791f74fcea3c.tar.gz talos-obmc-linux-2fa3e317e6c89fc89e96a48308f6791f74fcea3c.zip |
net: ethernet: nb8800: 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/ethernet/aurora/nb8800.ko | grep alias
$
After this patch:
$ modinfo drivers/net/ethernet/aurora/nb8800.ko | grep alias
alias: of:N*T*Csigma,smp8734-ethernetC*
alias: of:N*T*Csigma,smp8734-ethernet
alias: of:N*T*Csigma,smp8642-ethernetC*
alias: of:N*T*Csigma,smp8642-ethernet
alias: of:N*T*Caurora,nb8800C*
alias: of:N*T*Caurora,nb8800
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aurora')
-rw-r--r-- | drivers/net/ethernet/aurora/nb8800.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index b047fd607b83..00c38bf151e6 100644 --- a/drivers/net/ethernet/aurora/nb8800.c +++ b/drivers/net/ethernet/aurora/nb8800.c @@ -1358,6 +1358,7 @@ static const struct of_device_id nb8800_dt_ids[] = { }, { } }; +MODULE_DEVICE_TABLE(of, nb8800_dt_ids); static int nb8800_probe(struct platform_device *pdev) { |