Skip to content

Commit 1c7c952

Browse files
bijudassmb49
authored andcommitted
mtd: hyperbus: rpc-if: Add missing MODULE_DEVICE_TABLE
BugLink: https://bugs.launchpad.net/bugs/2101915 [ Upstream commit 7d189579a287d5c568db623c5fc2344cce98a887 ] The rpc-if-hyperflash driver can be compiled as a module, but lacks MODULE_DEVICE_TABLE() and will therefore not be loaded automatically. Fix this. Fixes: 5de15b6 ("mtd: hyperbus: add Renesas RPC-IF driver") Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Vignesh Raghavendra <vigneshr@ti.com> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/linux-mtd/20240731080846.257139-1-biju.das.jz@bp.renesas.com Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Koichiro Den <koichiro.den@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent cab9252 commit 1c7c952

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/mtd/hyperbus/rpc-if.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,16 @@ static void rpcif_hb_remove(struct platform_device *pdev)
163163
pm_runtime_disable(hyperbus->rpc.dev);
164164
}
165165

166+
static const struct platform_device_id rpc_if_hyperflash_id_table[] = {
167+
{ .name = "rpc-if-hyperflash" },
168+
{ /* sentinel */ }
169+
};
170+
MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table);
171+
166172
static struct platform_driver rpcif_platform_driver = {
167173
.probe = rpcif_hb_probe,
168174
.remove_new = rpcif_hb_remove,
175+
.id_table = rpc_if_hyperflash_id_table,
169176
.driver = {
170177
.name = "rpc-if-hyperflash",
171178
},

0 commit comments

Comments
 (0)