soc: fsl: rcpm: remove build warning
This removes build warning, drivers/soc/fsl/rcpm.c: In function ‘rcpm_pm_prepare’: drivers/soc/fsl/rcpm.c:126:37: warning: left shift count >= width of type [-Wshift-count-overflow] (u32)(((u64)(reg_offset[1] << (sizeof(u32) * 8) | ^~ drivers/soc/fsl/rcpm.c:131:38: warning: left shift count >= width of type [-Wshift-count-overflow] (u32)(((u64)(reg_offset[1] << (sizeof(u32) * 8) | Reviewed-by: Ran Wang <ran.wang_1@nxp.com> Signed-off-by: Biwen Li <biwen.li@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
c4fb88cc05
commit
5e9a0b2432
|
@ -123,12 +123,12 @@ static int rcpm_pm_prepare(struct device *dev)
|
|||
}
|
||||
/* Read value from register SCFG_SPARECR8 */
|
||||
regmap_read(scfg_addr_regmap,
|
||||
(u32)(((u64)(reg_offset[1] << (sizeof(u32) * 8) |
|
||||
((((u64)reg_offset[1] << (sizeof(u32) * 8) |
|
||||
reg_offset[2])) & 0xffffffff),
|
||||
®_value);
|
||||
/* Write value to register SCFG_SPARECR8 */
|
||||
regmap_write(scfg_addr_regmap,
|
||||
(u32)(((u64)(reg_offset[1] << (sizeof(u32) * 8) |
|
||||
((((u64)reg_offset[1] << (sizeof(u32) * 8) |
|
||||
reg_offset[2])) & 0xffffffff),
|
||||
tmp | reg_value);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue