summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rpc-if.c
diff options
context:
space:
mode:
authorBiju Das <biju.das.jz@bp.renesas.com>2024-07-31 09:29:53 +0200
committerMark Brown <broonie@kernel.org>2024-07-31 13:50:18 +0200
commit0880f669436028c5499901e5acd8f4b4ea0e0c6a (patch)
tree294f75e2809d58d308d467a82b646614d5e87121 /drivers/spi/spi-rpc-if.c
parentspi: cadence: Add 64BIT Kconfig dependency (diff)
downloadlinux-0880f669436028c5499901e5acd8f4b4ea0e0c6a.tar.xz
linux-0880f669436028c5499901e5acd8f4b4ea0e0c6a.zip
spi: rpc-if: Add missing MODULE_DEVICE_TABLE
Add missing MODULE_DEVICE_TABLE definition for automatic loading of the driver when it is built as a module. Fixes: eb8d6d464a27 ("spi: add Renesas RPC-IF driver") Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://patch.msgid.link/20240731072955.224125-1-biju.das.jz@bp.renesas.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi/spi-rpc-if.c')
-rw-r--r--drivers/spi/spi-rpc-if.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/spi/spi-rpc-if.c b/drivers/spi/spi-rpc-if.c
index d3f07fd719bd..b468a95972bf 100644
--- a/drivers/spi/spi-rpc-if.c
+++ b/drivers/spi/spi-rpc-if.c
@@ -198,9 +198,16 @@ static int __maybe_unused rpcif_spi_resume(struct device *dev)
static SIMPLE_DEV_PM_OPS(rpcif_spi_pm_ops, rpcif_spi_suspend, rpcif_spi_resume);
+static const struct platform_device_id rpc_if_spi_id_table[] = {
+ { .name = "rpc-if-spi" },
+ { /* sentinel */ }
+};
+MODULE_DEVICE_TABLE(platform, rpc_if_spi_id_table);
+
static struct platform_driver rpcif_spi_driver = {
.probe = rpcif_spi_probe,
.remove_new = rpcif_spi_remove,
+ .id_table = rpc_if_spi_id_table,
.driver = {
.name = "rpc-if-spi",
#ifdef CONFIG_PM_SLEEP