]> git.baikalelectronics.ru Git - kernel.git/commitdiff
clk: bcm: dvp: Add MODULE_DEVICE_TABLE()
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Wed, 2 Dec 2020 10:35:18 +0000 (11:35 +0100)
committerStephen Boyd <sboyd@kernel.org>
Sat, 19 Dec 2020 19:48:29 +0000 (11:48 -0800)
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 <nsaenzjulienne@suse.de>
Link: https://lore.kernel.org/r/20201202103518.21889-1-nsaenzjulienne@suse.de
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
drivers/clk/bcm/clk-bcm2711-dvp.c

index 6696200ecf7e2bcbc3c4514d6406eb78e3cb157d..e63a42618ac2cd7e3657ce84770f91b7e5e1b036 100644 (file)
@@ -107,6 +107,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,