Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
module. More precisely, for the driver to be loaded automatically at
boot.
Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
Signed-off-by: Nicolas Saenz Julienne <[email protected]>
---
drivers/clk/bcm/clk-bcm2711-dvp.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/bcm/clk-bcm2711-dvp.c b/drivers/clk/bcm/clk-bcm2711-dvp.c
index 8333e20dc9d2..69e2f85f7029 100644
--- a/drivers/clk/bcm/clk-bcm2711-dvp.c
+++ b/drivers/clk/bcm/clk-bcm2711-dvp.c
@@ -108,6 +108,7 @@ static const struct of_device_id clk_dvp_dt_ids[] = {
{ .compatible = "brcm,brcm2711-dvp", },
{ /* sentinel */ }
};
+MODULE_DEVICE_TABLE(of, clk_dvp_dt_ids);
static struct platform_driver clk_dvp_driver = {
.probe = clk_dvp_probe,
--
2.29.2
On Wed, Dec 02, 2020 at 11:35:18AM +0100, Nicolas Saenz Julienne wrote:
> Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
> module. More precisely, for the driver to be loaded automatically at
> boot.
>
> Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
> Signed-off-by: Nicolas Saenz Julienne <[email protected]>
Reviewed-by: Maxime Ripard <[email protected]>
Maxime
Quoting Nicolas Saenz Julienne (2020-12-02 02:35:18)
> Add MODULE_DEVICE_TABLE() so as to be able to use the driver as a
> module. More precisely, for the driver to be loaded automatically at
> boot.
>
> Fixes: 1bc95972715a ("clk: bcm: Add BCM2711 DVP driver")
> Signed-off-by: Nicolas Saenz Julienne <[email protected]>
> ---
Applied to clk-next