diff options
author | Liao Chen <liaochen4@huawei.com> | 2024-08-31 09:42:31 +0000 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-09-02 12:56:01 +0100 |
commit | 709df70a20e990d262c473ad9899314039e8ec82 (patch) | |
tree | 94dee8636a15f5f3185dc4faf7e5fb6640b1b1d5 /drivers/spi | |
parent | 2920294686ec23211637998f3ec386dfd3d784a6 (diff) | |
download | lwn-709df70a20e990d262c473ad9899314039e8ec82.tar.gz lwn-709df70a20e990d262c473ad9899314039e8ec82.zip |
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 <liaochen4@huawei.com>
Link: https://patch.msgid.link/20240831094231.795024-1-liaochen4@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/spi')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index aac41bd05f98..2fb8d4e55c77 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c @@ -472,6 +472,7 @@ static const struct of_device_id bcm63xx_spi_of_match[] = { { .compatible = "brcm,bcm6358-spi", .data = &bcm6358_spi_reg_offsets }, { }, }; +MODULE_DEVICE_TABLE(of, bcm63xx_spi_of_match); static int bcm63xx_spi_probe(struct platform_device *pdev) { |