From: Rain Yang Date: Sun, 28 Sep 2025 09:03:34 +0000 (+0800) Subject: drm/panthor: skip regulator setup if no such prop X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a8cb5ca53690aa809f4f65e14192753073e61a71;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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; }