]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
net: wan: slic_ds26522: Export OF module alias information
authorJavier Martinez Canillas <javier@osg.samsung.com>
Wed, 12 Oct 2016 18:55:41 +0000 (15:55 -0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 14 Oct 2016 14:11:49 +0000 (10:11 -0400)
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>
drivers/net/wan/slic_ds26522.c

index 53366a2232f0b1b9726a1300e622d9beffdc2d4c..b776a0ab106c0d55b1b7cdf14b79d91621d27aa1 100644 (file)
@@ -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 = {