summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXu Yilun <yilun.xu@intel.com>2020-06-24 09:31:26 +0800
committerMark Brown <broonie@kernel.org>2020-06-24 16:37:47 +0100
commit1ac6f21a948b45a49737a5eff6b4dae9f37a8dc0 (patch)
treea2cc873a1d79f6408f04c404f4113163da3cae7d
parentde5fd9cb6a3f89a1ac8f27883d029f823112243f (diff)
downloadlinux-1ac6f21a948b45a49737a5eff6b4dae9f37a8dc0.tar.bz2
spi: altera: fix module autoload
Add the MODULE_DEVICE_TABLE macro for the platform_device_id table to allow proper creation of modalias strings and fix autoloading module for this driver. Signed-off-by: Xu Yilun <yilun.xu@intel.com> Signed-off-by: Russ Weight <russell.h.weight@intel.com> Link: https://lore.kernel.org/r/1592962286-25752-3-git-send-email-yilun.xu@intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--drivers/spi/spi-altera.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-altera.c b/drivers/spi/spi-altera.c
index e272a041f704..809bfff3690a 100644
--- a/drivers/spi/spi-altera.c
+++ b/drivers/spi/spi-altera.c
@@ -356,6 +356,7 @@ static const struct platform_device_id altera_spi_ids[] = {
{ "subdev_spi_altera", ALTERA_SPI_TYPE_SUBDEV },
{ }
};
+MODULE_DEVICE_TABLE(platform, altera_spi_ids);
static struct platform_driver altera_spi_driver = {
.probe = altera_spi_probe,