[PATCH] clk: sophgo: Fix a warning about void returns value
    Yao Zi 
    ziyao at disroot.org
       
    Sat Oct 11 05:09:01 CEST 2025
    
    
  
On Wed, Oct 01, 2025 at 02:30:57PM -0600, Tom Rini wrote:
> 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 <trini at konsulko.com>
Reviewed-by: Yao Zi <ziyao at disroot.org>
milkv_duo_defconfig builds fine with this patch.
Regards,
Yao Zi
    
    
More information about the U-Boot
mailing list