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>
This commit is contained in:
Xu Yilun 2020-06-24 09:31:26 +08:00 committed by Mark Brown
parent de5fd9cb6a
commit 1ac6f21a94
No known key found for this signature in database
GPG Key ID: 24D68B725D5487D0

View File

@ -356,6 +356,7 @@ static const struct platform_device_id altera_spi_ids[] = {
{ "subdev_spi_altera", ALTERA_SPI_TYPE_SUBDEV }, { "subdev_spi_altera", ALTERA_SPI_TYPE_SUBDEV },
{ } { }
}; };
MODULE_DEVICE_TABLE(platform, altera_spi_ids);
static struct platform_driver altera_spi_driver = { static struct platform_driver altera_spi_driver = {
.probe = altera_spi_probe, .probe = altera_spi_probe,