Skip to content

Commit 709df70

Browse files
Liao Chenbroonie
authored andcommitted
spi: bcm63xx: Enable module autoloading
Add MODULE_DEVICE_TABLE(), so modules could be properly autoloaded based on the alias from of_device_id table. Signed-off-by: Liao Chen <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2920294 commit 709df70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/spi/spi-bcm63xx.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ static const struct of_device_id bcm63xx_spi_of_match[] = {
472472
{ .compatible = "brcm,bcm6358-spi", .data = &bcm6358_spi_reg_offsets },
473473
{ },
474474
};
475+
MODULE_DEVICE_TABLE(of, bcm63xx_spi_of_match);
475476

476477
static int bcm63xx_spi_probe(struct platform_device *pdev)
477478
{

0 commit comments

Comments
 (0)