[PATCH 2/2] pwm: tegra: Opt out of driver_override

From: Thierry Reding

Date: Tue Sep 22 2026 - 07:39:45 EST


From: Thierry Reding <treding@xxxxxxxxxx>

The Tegra PWM driver heavily relies on device data obtained through
device ID matching and will not work if this data is missing. Opt out of
the driver_override mechanism to prevent the driver from accidentally
being bound to a device that doesn't match a DT device ID table entry.

Signed-off-by: Thierry Reding <treding@xxxxxxxxxx>
---
drivers/pwm/pwm-tegra.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/pwm/pwm-tegra.c b/drivers/pwm/pwm-tegra.c
index 5cdbe120ba2d..f92680a0f13b 100644
--- a/drivers/pwm/pwm-tegra.c
+++ b/drivers/pwm/pwm-tegra.c
@@ -486,6 +486,7 @@ static struct platform_driver tegra_pwm_driver = {
.name = "tegra-pwm",
.of_match_table = tegra_pwm_of_match,
.pm = &tegra_pwm_pm_ops,
+ .disallow_override = true,
},
.probe = tegra_pwm_probe,
.remove = tegra_pwm_remove,

--
2.55.0