Arnd Bergmann
f1a9886ddd
mfd: omap-usb-tll: Fix register offsets
...
[ Upstream commit 993dc737c0 ]
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: 16fa3dc75c ("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 >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2019-07-10 09:56:41 +02:00
..
2019-04-27 09:33:58 +02:00
2018-05-02 07:53:42 -07:00
2019-06-22 08:18:27 +02:00
2019-06-22 08:18:22 +02:00
2019-03-23 08:44:16 +01:00
2019-06-11 12:24:00 +02:00
2019-05-16 19:45:02 +02:00
2018-11-27 16:08:01 +01:00
2018-04-13 19:50:05 +02:00
2019-04-27 09:33:52 +02:00
2019-06-11 12:24:04 +02:00
2019-06-22 08:18:20 +02:00
2019-03-23 08:44:35 +01:00
2019-06-11 12:24:01 +02:00
2019-02-20 10:13:09 +01:00
2019-06-22 08:18:26 +02:00
2018-11-10 07:41:40 -08:00
2019-06-22 08:18:21 +02:00
2018-10-10 08:52:06 +02:00
2019-06-11 12:24:01 +02:00
2018-05-30 07:48:52 +02:00
2019-04-03 06:23:20 +02:00
2019-06-22 08:18:26 +02:00
2019-06-22 08:18:24 +02:00
2019-06-11 12:24:03 +02:00
2018-03-24 10:58:42 +01:00
2019-01-13 10:05:27 +01:00
2019-07-10 09:56:33 +02:00
2019-06-11 12:23:44 +02:00
2019-06-22 08:18:26 +02:00
2018-12-21 14:09:52 +01:00
2018-02-25 11:03:51 +01:00
2019-06-11 12:24:02 +02:00
2019-06-22 08:18:27 +02:00
2019-07-10 09:56:31 +02:00
2019-06-22 08:18:19 +02:00
2019-03-23 08:44:27 +01:00
2019-06-22 08:18:25 +02:00
2019-04-27 09:33:51 +02:00
2018-09-19 22:48:57 +02:00
2019-06-22 08:18:23 +02:00
2019-06-11 12:24:12 +02:00
2019-06-11 12:23:46 +02:00
2019-02-20 10:13:09 +01:00
2018-05-30 07:48:58 +02:00
2019-07-10 09:56:41 +02:00
2019-06-22 08:18:23 +02:00
2019-06-11 12:24:00 +02:00
2019-02-20 10:13:17 +01:00
2019-07-10 09:56:38 +02:00
2019-02-20 10:13:20 +01:00
2018-05-30 07:48:55 +02:00
2019-05-16 19:45:05 +02:00
2018-07-11 16:03:47 +02:00
2019-06-22 08:18:20 +02:00
2018-12-01 09:46:35 +01:00
2019-06-11 12:24:13 +02:00
2019-07-10 09:56:31 +02:00
2019-06-22 08:18:21 +02:00
2018-11-21 09:27:30 +01:00
2018-03-22 09:23:26 +01:00
2019-06-11 12:23:57 +02:00
2019-06-22 08:18:20 +02:00
2019-06-11 12:23:49 +02:00
2018-04-13 19:50:05 +02:00
2019-02-20 10:13:05 +01:00
2019-06-22 08:18:21 +02:00
2019-04-27 09:33:53 +02:00
2019-06-11 12:23:54 +02:00
2019-07-10 09:56:32 +02:00
2018-12-21 14:09:52 +01:00
2019-07-10 09:56:41 +02:00
2019-06-22 08:18:20 +02:00
2019-07-10 09:56:39 +02:00
2019-06-11 12:23:53 +02:00
2019-07-10 09:56:32 +02:00
2019-03-23 08:44:35 +01:00
2018-11-21 09:27:36 +01:00
2019-04-27 09:33:57 +02:00
2018-04-24 09:32:07 +02:00
2019-06-22 08:18:25 +02:00
2018-11-27 16:08:02 +01:00
2019-07-10 09:56:40 +02:00
2018-10-10 08:52:04 +02:00
2019-05-16 19:45:01 +02:00
2019-01-13 10:05:28 +01:00
2019-06-22 08:18:21 +02:00
2019-05-16 19:45:18 +02:00
2018-08-06 16:24:42 +02:00
2019-06-11 12:23:55 +02:00
2018-05-30 07:49:03 +02:00
2019-06-11 12:24:13 +02:00
2018-05-30 07:49:11 +02:00
2018-02-25 11:03:38 +01:00