aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-11-02 15:28:57 -0500
committerDavid S. Miller <davem@davemloft.net>2015-11-02 15:28:57 -0500
commit64cf370887ac497e74b2e4224b662bfd1d8db41a (patch)
tree8dfef04de8f8c0a95dbf5a05e2ade838b4e06a7c
parent322cf7e3a4e89236ae386cb5668ae0d787d21136 (diff)
parent07f56c616d06b966c0a63d16172935b257a6a8d4 (diff)
downloadnfc-fixes-64cf370887ac497e74b2e4224b662bfd1d8db41a.tar.gz
Merge branch 'encx24j600-fixes'
Javier Martinez Canillas says: ==================== net: encx24j600: Fix SPI driver module autoload 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. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/microchip/encx24j600.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/net/ethernet/microchip/encx24j600.c b/drivers/net/ethernet/microchip/encx24j600.c
index bf08ce2baf8d10..2056b719c262f2 100644
--- a/drivers/net/ethernet/microchip/encx24j600.c
+++ b/drivers/net/ethernet/microchip/encx24j600.c
@@ -1094,9 +1094,11 @@ static int encx24j600_spi_remove(struct spi_device *spi)
return 0;
}
-static const struct spi_device_id encx24j600_spi_id_table = {
- .name = "encx24j600"
+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 = {
@@ -1106,7 +1108,7 @@ static struct spi_driver encx24j600_spi_net_driver = {
},
.probe = encx24j600_spi_probe,
.remove = encx24j600_spi_remove,
- .id_table = &encx24j600_spi_id_table,
+ .id_table = encx24j600_spi_id_table,
};
static int __init encx24j600_init(void)