Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1499893

[PATCH 2/2] net: wan: slic_ds26522: Export OF module alias information

From Javier Martinez Canillas <javier@osg.samsung.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] net: wan: slic_ds26522: Export OF module alias information
Date 2016-10-12 21:00 +0200
Message-ID <srwUW-8js-19@gated-at.bofh.it> (permalink)
References <srwUW-8js-21@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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>
---

 drivers/net/wan/slic_ds26522.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/wan/slic_ds26522.c b/drivers/net/wan/slic_ds26522.c
index 53366a2232f0..b776a0ab106c 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 = {
-- 
2.7.4

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/2] net: wan: slic_ds26522: Export OF module alias information Javier Martinez Canillas <javier@osg.samsung.com> - 2016-10-12 21:00 +0200
  Re: [PATCH 2/2] net: wan: slic_ds26522: Export OF module alias  information David Miller <davem@davemloft.net> - 2016-10-14 16:20 +0200

csiph-web