Commit 485c9d43 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by David S. Miller

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: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 558c5eb5
...@@ -235,6 +235,7 @@ static const struct of_device_id slic_ds26522_match[] = { ...@@ -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 = { static struct spi_driver slic_ds26522_driver = {
.driver = { .driver = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment