]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/panthor: skip regulator setup if no such prop
authorRain Yang <jiyu.yang@nxp.com>
Sun, 28 Sep 2025 09:03:34 +0000 (17:03 +0800)
committerSteven Price <steven.price@arm.com>
Thu, 9 Oct 2025 12:57:12 +0000 (13:57 +0100)
The regulator is optional, skip the setup instead of returning an
error if it is not present

Signed-off-by: Rain Yang <jiyu.yang@nxp.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://lore.kernel.org/r/20250928090334.35389-2-jiyu.yang@oss.nxp.com
drivers/gpu/drm/panthor/panthor_devfreq.c

index 3686515d368db5bb329f4858d4a7247a4957cc24..2df1d76d84a09844d7f67a6740108578ee69bb61 100644 (file)
@@ -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;
        }