diff options
| author | Tom Rini <[email protected]> | 2025-10-01 14:30:57 -0600 |
|---|---|---|
| committer | Leo Yu-Chi Liang <[email protected]> | 2025-10-16 16:44:49 +0800 |
| commit | 0ab7710a06401f8cac1d49bac5e66d25f3e6e4e1 (patch) | |
| tree | b93002dc7df1df26b3fc7b2c653c046e033f6d76 /drivers | |
| parent | e6646b35f410c4ffbdb0f309d4dad1e16c1e4714 (diff) | |
clk: sophgo: Fix a warning about void returns value
The cv1800b_clk_setfield function returns void, but was doing "return
writel(...);" and while seemingly having a void function return a void
function is not a warning, when readl is a macro this problem is shown.
Correct the code to instead simply call writel.
Signed-off-by: Tom Rini <[email protected]>
Reviewed-by: Yao Zi <[email protected]>
Diffstat (limited to 'drivers')
| -rw-r--r-- | drivers/clk/sophgo/clk-common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/sophgo/clk-common.h b/drivers/clk/sophgo/clk-common.h index a9e83d0d689..a18673f397c 100644 --- a/drivers/clk/sophgo/clk-common.h +++ b/drivers/clk/sophgo/clk-common.h @@ -70,7 +70,7 @@ cv1800b_clk_setfield(void *base, struct cv1800b_clk_regfield *field, u32 val) u32 new_val = (readl(base + field->offset) & ~mask) | ((val << field->shift) & mask); - return writel(new_val, base + field->offset); + writel(new_val, base + field->offset); } #endif /* __CLK_SOPHGO_COMMON_H__ */ |
