projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de5fd9c
)
spi: altera: fix module autoload
author
Xu Yilun
<yilun.xu@intel.com>
Wed, 24 Jun 2020 01:31:26 +0000
(09:31 +0800)
committer
Mark Brown
<broonie@kernel.org>
Wed, 24 Jun 2020 15:37:47 +0000
(16:37 +0100)
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>
drivers/spi/spi-altera.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-altera.c
b/drivers/spi/spi-altera.c
index
e272a04
..
809bfff
100644
(file)
--- 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,