]> git.baikalelectronics.ru Git - kernel.git/commit
net: wan: slic_ds26522: add SPI device ID table to fix module autoload
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 12 Oct 2016 18:55:40 +0000 (15:55 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Oct 2016 14:11:48 +0000 (10:11 -0400)
commit19e677b2cb37215af3498818215cdc9841b21f58
treee1e125350742e48928c8a5e8f47362df8fee9bf1
parent757fb86849f795da3f136887b810ecb383fb3d6e
net: wan: slic_ds26522: add SPI device ID table to fix module autoload

If the driver is built as a module, module alias information isn't filled
so the module won't be autoloaded. Add a SPI device ID table and use the
MODULE_DEVICE_TABLE() macro so the information is exported in the module.

Before this patch:

$ modinfo drivers/net/wan/slic_ds26522.ko | grep alias
$

After this patch:

$ modinfo drivers/net/wan/slic_ds26522.ko | grep alias
alias:          spi:ds26522

Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wan/slic_ds26522.c