mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-05-05 12:46:14 +02:00
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-riscv
CI: https://source.denx.de/u-boot/custodians/u-boot-riscv/-/pipelines/25312 - Fix warning - Fix incorrect return value
This commit is contained in:
commit
47f433d577
@ -35,6 +35,5 @@ config BOARD_SPECIFIC_OPTIONS # dummy
|
||||
imply SPL_SMP
|
||||
imply SPL_MMC
|
||||
imply SMP
|
||||
imply SPL_RISCV_MMODE
|
||||
|
||||
endif
|
||||
|
||||
@ -45,12 +45,14 @@ static inline u32 cv1800b_clk_getbit(void *base, struct cv1800b_clk_regbit *bit)
|
||||
|
||||
static inline u32 cv1800b_clk_setbit(void *base, struct cv1800b_clk_regbit *bit)
|
||||
{
|
||||
return setbits_le32(base + bit->offset, BIT(bit->shift));
|
||||
setbits_le32(base + bit->offset, BIT(bit->shift));
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline u32 cv1800b_clk_clrbit(void *base, struct cv1800b_clk_regbit *bit)
|
||||
{
|
||||
return clrbits_le32(base + bit->offset, BIT(bit->shift));
|
||||
clrbits_le32(base + bit->offset, BIT(bit->shift));
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline u32 cv1800b_clk_getfield(void *base,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user