Skip to content
This repository was archived by the owner on Oct 31, 2024. It is now read-only.

Commit e2955fb

Browse files
bijudasgregkh
authored andcommitted
spi: rpc-if: Add missing MODULE_DEVICE_TABLE
[ Upstream commit 0880f66 ] Add missing MODULE_DEVICE_TABLE definition for automatic loading of the driver when it is built as a module. Fixes: eb8d6d4 ("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 106f10f commit e2955fb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/spi/spi-rpc-if.c

+7
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,16 @@ static int __maybe_unused rpcif_spi_resume(struct device *dev)
198198

199199
static SIMPLE_DEV_PM_OPS(rpcif_spi_pm_ops, rpcif_spi_suspend, rpcif_spi_resume);
200200

201+
static const struct platform_device_id rpc_if_spi_id_table[] = {
202+
{ .name = "rpc-if-spi" },
203+
{ /* sentinel */ }
204+
};
205+
MODULE_DEVICE_TABLE(platform, rpc_if_spi_id_table);
206+
201207
static struct platform_driver rpcif_spi_driver = {
202208
.probe = rpcif_spi_probe,
203209
.remove_new = rpcif_spi_remove,
210+
.id_table = rpc_if_spi_id_table,
204211
.driver = {
205212
.name = "rpc-if-spi",
206213
#ifdef CONFIG_PM_SLEEP

0 commit comments

Comments
 (0)