1
0
Fork 0

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
Biwen Li 2019-12-05 17:21:06 +08:00
parent c4fb88cc05
commit 5e9a0b2432
1 changed files with 2 additions and 2 deletions

View File

@ -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),
&reg_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);
}