From a8cb5ca53690aa809f4f65e14192753073e61a71 Mon Sep 17 00:00:00 2001 From: Rain Yang Date: Sun, 28 Sep 2025 17:03:34 +0800 Subject: [PATCH] drm/panthor: skip regulator setup if no such prop The regulator is optional, skip the setup instead of returning an error if it is not present Signed-off-by: Rain Yang Reviewed-by: Boris Brezillon Reviewed-by: Steven Price Signed-off-by: Steven Price Link: https://lore.kernel.org/r/20250928090334.35389-2-jiyu.yang@oss.nxp.com --- drivers/gpu/drm/panthor/panthor_devfreq.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/panthor/panthor_devfreq.c b/drivers/gpu/drm/panthor/panthor_devfreq.c index 3686515d368db..2df1d76d84a09 100644 --- a/drivers/gpu/drm/panthor/panthor_devfreq.c +++ b/drivers/gpu/drm/panthor/panthor_devfreq.c @@ -146,10 +146,9 @@ int panthor_devfreq_init(struct panthor_device *ptdev) ptdev->devfreq = pdevfreq; ret = devm_pm_opp_set_regulators(dev, reg_names); - if (ret) { + if (ret && ret != -ENODEV) { if (ret != -EPROBE_DEFER) DRM_DEV_ERROR(dev, "Couldn't set OPP regulators\n"); - return ret; } -- 2.47.3