From: Javier Martinez Canillas Date: Wed, 12 Oct 2016 18:55:41 +0000 (-0300) Subject: net: wan: slic_ds26522: Export OF module alias information X-Git-Tag: v4.9.8~1026^2~110 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=485c9d43382172c1b2ecf42deb4476b5e37e1264;p=platform%2Fkernel%2Flinux-rpi3.git 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 Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/slic_ds26522.c b/drivers/net/wan/slic_ds26522.c index 53366a2..b776a0a 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 = {