summaryrefslogtreecommitdiff
path: root/drivers/accel
diff options
context:
space:
mode:
authorJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2025-08-08 13:10:44 +0200
committerJacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com>2025-09-01 12:18:05 +0200
commit78f859673c85cc7c18ffdeb659f29cad3f13b580 (patch)
treee8c17fd9aa877db9f84239f8afdc6ebe6df563da /drivers/accel
parentc51f6fe14cd7e2e0a0e1094d38805dcbbd04a058 (diff)
downloadlinux-78f859673c85cc7c18ffdeb659f29cad3f13b580.tar.gz
linux-78f859673c85cc7c18ffdeb659f29cad3f13b580.tar.bz2
linux-78f859673c85cc7c18ffdeb659f29cad3f13b580.zip
accel/ivpu: Remove unused PLL_CONFIG_DEFAULT
This change removes the unnecessary condition, makes the code clearer, and silences clang-tidy warning. Reviewed-by: Lizhi Hou <lizhi.hou@amd.com> Signed-off-by: Jacek Lawrynowicz <jacek.lawrynowicz@linux.intel.com> Link: https://lore.kernel.org/r/20250808111044.328800-1-jacek.lawrynowicz@linux.intel.com
Diffstat (limited to 'drivers/accel')
-rw-r--r--drivers/accel/ivpu/ivpu_hw_btrs.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/accel/ivpu/ivpu_hw_btrs.c b/drivers/accel/ivpu/ivpu_hw_btrs.c
index b236c7234daa..afdb3b2aa72a 100644
--- a/drivers/accel/ivpu/ivpu_hw_btrs.c
+++ b/drivers/accel/ivpu/ivpu_hw_btrs.c
@@ -33,7 +33,6 @@
#define PLL_CDYN_DEFAULT 0x80
#define PLL_EPP_DEFAULT 0x80
-#define PLL_CONFIG_DEFAULT 0x0
#define PLL_REF_CLK_FREQ 50000000ull
#define PLL_RATIO_TO_FREQ(x) ((x) * PLL_REF_CLK_FREQ)
@@ -303,7 +302,7 @@ static void prepare_wp_request(struct ivpu_device *vdev, struct wp_request *wp,
wp->epp = 0;
} else {
wp->target = hw->pll.pn_ratio;
- wp->cfg = enable ? PLL_CONFIG_DEFAULT : 0;
+ wp->cfg = 0;
wp->cdyn = enable ? PLL_CDYN_DEFAULT : 0;
wp->epp = enable ? PLL_EPP_DEFAULT : 0;
}