Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1259474 > unrolled thread
| Started by | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| First post | 2015-10-30 13:50 +0100 |
| Last post | 2015-10-30 13:50 +0100 |
| Articles | 2 — 1 participant |
Back to article view | Back to linux.kernel
[PATCH 0/2] net: encx24j600: Fix SPI driver module autoload Javier Martinez Canillas <javier@osg.samsung.com> - 2015-10-30 13:50 +0100
[PATCH 2/2] net: encx24j600: Export missing SPI module alias information Javier Martinez Canillas <javier@osg.samsung.com> - 2015-10-30 13:50 +0100
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2015-10-30 13:50 +0100 |
| Subject | [PATCH 0/2] net: encx24j600: Fix SPI driver module autoload |
| Message-ID | <qphi1-5Rm-13@gated-at.bofh.it> |
Hello, Recently I've been trying to fix module autoloading for all SPI drivers and found that the encx24j600 driver does not fill module alias information due missing a MODULE_DEVICE_TABLE() so module autload won't work and the driver Kconfig symbol is tristate which means the driver can be built as a module. But also the SPI id table is not correctly defined so this series fixes both issues. The patches have been applied on top of the next-next tree master branch: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master Best regards, Javier Javier Martinez Canillas (2): net: encx24j600: Fix SPI id table definition net: encx24j600: Export missing SPI module alias information drivers/net/ethernet/microchip/encx24j600.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.4.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[toc] | [next] | [standalone]
| From | Javier Martinez Canillas <javier@osg.samsung.com> |
|---|---|
| Date | 2015-10-30 13:50 +0100 |
| Subject | [PATCH 2/2] net: encx24j600: Export missing SPI module alias information |
| Message-ID | <qphi2-5Rm-15@gated-at.bofh.it> |
| In reply to | #1259474 |
The driver Kconfig symbol is tristate which means that it can be built as
a module but the module alias information is not added to the module info
so module autoload won't work since user-space won't have the information.
Signed-off-by: Javier Martinez Canillas <javier@osg.samsung.com>
---
drivers/net/ethernet/microchip/encx24j600.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/microchip/encx24j600.c b/drivers/net/ethernet/microchip/encx24j600.c
index c2dafc1c53de..2056b719c262 100644
--- a/drivers/net/ethernet/microchip/encx24j600.c
+++ b/drivers/net/ethernet/microchip/encx24j600.c
@@ -1098,6 +1098,7 @@ static const struct spi_device_id encx24j600_spi_id_table[] = {
{ .name = "encx24j600" },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(spi, encx24j600_spi_id_table);
static struct spi_driver encx24j600_spi_net_driver = {
.driver = {
--
2.4.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web