Skip to content

Commit

Permalink
net: wan: slic_ds26522: Export OF module alias information
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Javier Martinez Canillas authored and David S. Miller committed Oct 14, 2016
1 parent 558c5eb commit 485c9d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/wan/slic_ds26522.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 485c9d4

Please sign in to comment.