summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorJavier Martinez Canillas2016-10-12 20:55:41 +0200
committerDavid S. Miller2016-10-14 16:11:49 +0200
commit485c9d43382172c1b2ecf42deb4476b5e37e1264 (patch)
tree3d7f6c5985e3ebfedc4acaf38b03220df6f0d541 /drivers/net/wan
parentnet: wan: slic_ds26522: add SPI device ID table to fix module autoload (diff)
downloadkernel-qcow2-linux-485c9d43382172c1b2ecf42deb4476b5e37e1264.tar.gz
kernel-qcow2-linux-485c9d43382172c1b2ecf42deb4476b5e37e1264.tar.xz
kernel-qcow2-linux-485c9d43382172c1b2ecf42deb4476b5e37e1264.zip
net: wan: slic_ds26522: Export OF module alias information
When the device is registered via OF, the OF table is used to match the driver instead of the SPI device ID table, but the entries in the later are used as aliasses to load the module if the driver was not built-in. This is because the SPI core always reports an SPI module alias instead of an OF one, but that could change so it's better to always export it. Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/slic_ds26522.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wan/slic_ds26522.c b/drivers/net/wan/slic_ds26522.c
index 53366a2232f0..b776a0ab106c 100644
--- a/drivers/net/wan/slic_ds26522.c
+++ b/drivers/net/wan/slic_ds26522.c
@@ -235,6 +235,7 @@ static const struct of_device_id slic_ds26522_match[] = {
},
{},
};
+MODULE_DEVICE_TABLE(of, slic_ds26522_match);
static struct spi_driver slic_ds26522_driver = {
.driver = {