Skip to content

Commit

Permalink
mfd: ocelot-spi: Add missing MODULE_DEVICE_TABLE
Browse files Browse the repository at this point in the history
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: f3e8936 ("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
  • Loading branch information
Yang Yingliang authored and Lee Jones committed Sep 28, 2022
1 parent 11cb8da commit 02010cf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mfd/ocelot-spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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" },
Expand Down

0 comments on commit 02010cf

Please sign in to comment.