summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/intel_soc_pmic_crc.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-08-23 16:44:51 +0200
committerLee Jones <lee.jones@linaro.org>2017-09-05 08:46:02 +0100
commit993dc737c0996c163325961fb62a0ed9fd0308b4 (patch)
tree898804d2408755e4dc562874b88cd71bf7bd8a2d /drivers/mfd/intel_soc_pmic_crc.c
parent7e1372a4ceb80dafef5ff661a66d7b3a1a8c0a75 (diff)
downloadop-kernel-dev-993dc737c0996c163325961fb62a0ed9fd0308b4.zip
op-kernel-dev-993dc737c0996c163325961fb62a0ed9fd0308b4.tar.gz
mfd: omap-usb-tll: Fix register offsets
gcc-8 notices that the register number calculation is wrong when the offset is an 'u8' but the number is larger than 256: drivers/mfd/omap-usb-tll.c: In function 'omap_tll_init': drivers/mfd/omap-usb-tll.c:90:46: error: overflow in conversion from 'int' to 'u8 {aka unsigned char}' chages value from 'i * 256 + 2070' to '22' [-Werror=overflow] This addresses it by always using a 32-bit offset number for the register. This is apparently an old problem that previous compilers did not find. Fixes: 16fa3dc75c22 ("mfd: omap-usb-tll: HOST TLL platform driver") Signed-off-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/intel_soc_pmic_crc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud