Commit 7d189579 authored by Biju Das's avatar Biju Das Committed by Miquel Raynal
Browse files

mtd: hyperbus: rpc-if: Add missing MODULE_DEVICE_TABLE



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: 5de15b61 ("mtd: hyperbus: add Renesas RPC-IF driver")
Signed-off-by: default avatarBiju Das <biju.das.jz@bp.renesas.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Link: https://lore.kernel.org/linux-mtd/20240731080846.257139-1-biju.das.jz@bp.renesas.com
parent 9852d85e
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -163,9 +163,16 @@ static void rpcif_hb_remove(struct platform_device *pdev)
	pm_runtime_disable(hyperbus->rpc.dev);
}

static const struct platform_device_id rpc_if_hyperflash_id_table[] = {
	{ .name = "rpc-if-hyperflash" },
	{ /* sentinel */ }
};
MODULE_DEVICE_TABLE(platform, rpc_if_hyperflash_id_table);

static struct platform_driver rpcif_platform_driver = {
	.probe	= rpcif_hb_probe,
	.remove_new = rpcif_hb_remove,
	.id_table = rpc_if_hyperflash_id_table,
	.driver	= {
		.name	= "rpc-if-hyperflash",
	},