mfd: ocelot-spi: Add missing MODULE_DEVICE_TABLE
Subsystems (2)
PATCH 1/1 mfd: ocelot-spi: Add missing MODULE_DEVICE_TABLE
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 <[email protected]>
--- drivers/mfd/ocelot-spi.c | 1 + 1 file changed, 1 insertion(+)
drivers/mfd/ocelot-spi.c +1 -0
@@ -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" },
Signature · 1 line
2.25.1
Colin Foster
maintainerHi Yang,
Quoted 25 lines · Yang Yingliang
This patch adds missing
MODULE_DEVICE_TABLEdefinition 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 <[email protected]>--- drivers/mfd/ocelot-spi.c | 1 + 1 file changed, 1 insertion(+)drivers/mfd/ocelot-spi.c +1
-0@@ -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" },Signature · 1 line
2.25.1
Good catch. I just tested running ocelot-soc as a module and it worked without your patch. Do you know how I can test the case where it fails?
Thanks
Colin Foster
Quoted 9 lines · Yang Yingliang
This patch adds missing
MODULE_DEVICE_TABLEdefinition 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 <[email protected]>--- drivers/mfd/ocelot-spi.c | 1 + 1 file changed, 1 insertion(+)
Applied, thanks.
Signature · 1 line
Lee Jones [李琼斯]