[PATCH v2 07/10] clk: imx: scu: Allow untainted use of driver_override
Uwe Kleine-König
u.kleine-koenig at baylibre.com
Fri Nov 20 03:11:08 PST 2026
The driver makes use of device_set_driver_override and so should be
allowed to match via that driver_override. Note that the .probe()
function assumes that platform_data is set for the device to bind, so it
can very likely allow root to oops the kernel. This is not a regression
however.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig at baylibre.com>
---
drivers/clk/imx/clk-scu.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/clk/imx/clk-scu.c b/drivers/clk/imx/clk-scu.c
index 0d034e206c6b..7622890d1124 100644
--- a/drivers/clk/imx/clk-scu.c
+++ b/drivers/clk/imx/clk-scu.c
@@ -626,6 +626,7 @@ static struct platform_driver imx_clk_scu_driver = {
.name = "imx-scu-clk",
.suppress_bind_attrs = true,
.pm = &imx_clk_scu_pm_ops,
+ .support_driver_override = true,
},
.probe = imx_clk_scu_probe,
};
--
2.56.0.rc1
More information about the linux-arm-kernel
mailing list