projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
11cb8da
)
mfd: ocelot-spi: Add missing MODULE_DEVICE_TABLE
author
Yang Yingliang
<yangyingliang@huawei.com>
Thu, 22 Sep 2022 10:37:03 +0000
(18:37 +0800)
committer
Lee Jones
<lee@kernel.org>
Wed, 28 Sep 2022 15:17:42 +0000
(16:17 +0100)
This patch adds missing MODULE_DEVICE_TABLE definition which generates
correct modalias for automatic loading of this driver when it is built
as an external module.
Fixes:
f3e893626abe
("mfd: ocelot: Add support for the vsc7512 chip via spi")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link:
https://lore.kernel.org/r/20220922103703.1731266-1-yangyingliang@huawei.com
drivers/mfd/ocelot-spi.c
patch
|
blob
|
history
diff --git
a/drivers/mfd/ocelot-spi.c
b/drivers/mfd/ocelot-spi.c
index
0f097f4
..
2ecd271
100644
(file)
--- a/
drivers/mfd/ocelot-spi.c
+++ b/
drivers/mfd/ocelot-spi.c
@@
-276,6
+276,7
@@
static const struct spi_device_id ocelot_spi_ids[] = {
{ "vsc7512", 0 },
{ }
};
+MODULE_DEVICE_TABLE(spi, ocelot_spi_ids);
static const struct of_device_id ocelot_spi_of_match[] = {
{ .compatible = "mscc,vsc7512" },