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-Tag: ceph-for-6.19-rc5~251^2~23^2~66 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a8cb5ca53690aa809f4f65e14192753073e61a71;p=ceph-client.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 3686515d368d..2df1d76d84a0 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; }