diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-09-22 13:37:03 +0300 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2022-09-28 18:17:42 +0300 |
commit | 02010cf0093629b9eeadade1f2684d85eaa3390f (patch) | |
tree | edd2eaac9ec5b3ac26d2d84394b5d14231ebd451 /drivers/mfd/ocelot-spi.c | |
parent | 11cb8da0189b417392e2334ae967b0ba1f0d1be8 (diff) | |
download | linux-02010cf0093629b9eeadade1f2684d85eaa3390f.tar.xz |
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 <yangyingliang@huawei.com>
Signed-off-by: Lee Jones <lee@kernel.org>
Link: https://lore.kernel.org/r/20220922103703.1731266-1-yangyingliang@huawei.com
Diffstat (limited to 'drivers/mfd/ocelot-spi.c')
-rw-r--r-- | drivers/mfd/ocelot-spi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/ocelot-spi.c b/drivers/mfd/ocelot-spi.c index 0f097f4829d1..2ecd271de2fb 100644 --- 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" }, |