Arnd Bergmann
f3002e55a4
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:55:44 +02:00
..
2019-05-14 19:19:34 +02:00
2018-05-01 15:13:08 -07:00
2019-06-11 12:22:44 +02:00
2019-06-22 08:17:18 +02:00
2019-02-27 10:06:59 +01:00
2018-02-13 12:35:55 +01:00
2019-05-31 06:48:26 -07:00
2019-05-10 17:52:09 +02:00
2018-11-27 16:09:40 +01:00
2018-12-05 19:42:41 +01:00
2019-04-05 22:29:12 +02:00
2019-05-31 06:48:29 -07:00
2019-06-22 08:17:15 +02:00
2019-03-23 13:19:46 +01:00
2019-05-31 06:48:27 -07:00
2019-02-12 19:44:55 +01:00
2019-06-11 12:22:35 +02:00
2018-02-28 10:18:33 +01:00
2018-04-13 19:48:09 +02:00
2019-06-22 08:17:17 +02:00
2018-06-06 16:44:33 +02:00
2018-11-13 11:16:56 -08:00
2019-05-31 06:48:26 -07:00
2018-05-30 07:50:18 +02:00
2019-06-11 12:22:45 +02:00
2019-06-22 08:17:23 +02:00
2019-07-10 09:55:43 +02:00
2019-05-31 06:48:29 -07:00
2018-03-24 11:00:12 +01:00
2018-12-29 13:40:15 +01:00
2019-07-10 09:55:32 +02:00
2019-05-25 18:26:46 +02:00
2019-06-22 08:17:23 +02:00
2018-12-21 14:11:37 +01:00
2019-05-14 19:19:34 +02:00
2019-05-31 06:48:27 -07:00
2019-07-10 09:55:36 +02:00
2019-07-10 09:55:28 +02:00
2019-06-22 08:17:14 +02:00
2019-06-11 12:22:48 +02:00
2019-06-22 08:17:22 +02:00
2019-05-04 08:49:10 +02:00
2018-10-20 09:51:32 +02:00
2018-09-09 20:01:19 +02:00
2017-09-09 17:39:41 +02:00
2019-06-22 08:17:19 +02:00
2019-06-22 08:17:18 +02:00
2019-05-25 18:26:49 +02:00
2019-02-12 19:44:55 +01:00
2018-05-25 16:13:06 +02:00
2019-07-10 09:55:44 +02:00
2019-06-22 08:17:19 +02:00
2019-05-31 06:48:25 -07:00
2019-02-15 08:07:37 +01:00
2019-07-10 09:55:41 +02:00
2019-05-16 19:43:43 +02:00
2018-05-30 07:50:22 +02:00
2019-05-31 06:48:11 -07:00
2019-07-10 09:55:32 +02:00
2019-06-22 08:17:15 +02:00
2018-12-01 09:44:21 +01:00
2019-06-11 12:22:47 +02:00
2019-07-10 09:55:29 +02:00
2019-06-22 08:17:17 +02:00
2018-11-13 11:16:46 -08:00
2018-03-22 09:17:51 +01:00
2019-02-27 10:07:03 +01:00
2019-05-31 06:48:18 -07:00
2019-06-22 08:17:16 +02:00
2019-05-25 18:26:56 +02:00
2019-05-14 19:19:34 +02:00
2019-02-12 19:44:52 +01:00
2019-06-22 08:17:17 +02:00
2019-06-22 08:17:11 +02:00
2019-04-05 22:29:14 +02:00
2018-12-08 13:05:08 +01:00
2018-11-13 11:17:03 -08:00
2019-06-22 08:17:21 +02:00
2019-07-10 09:55:32 +02:00
2018-12-21 14:11:36 +01:00
2019-07-10 09:55:43 +02:00
2019-06-22 08:17:15 +02:00
2019-07-10 09:55:43 +02:00
2017-07-27 15:08:08 -07:00
2019-05-31 06:48:12 -07:00
2019-06-22 08:17:22 +02:00
2019-03-23 13:19:47 +01:00
2018-11-13 11:17:02 -08:00
2019-06-22 08:17:13 +02:00
2018-04-24 09:34:12 +02:00
2019-06-22 08:17:22 +02:00
2018-11-27 16:09:41 +01:00
2019-07-10 09:55:43 +02:00
2018-10-03 17:01:42 -07:00
2019-05-08 07:19:10 +02:00
2019-04-27 09:34:40 +02:00
2019-06-22 08:17:17 +02:00
2019-05-16 19:43:47 +02:00
2019-04-17 08:36:47 +02:00
2019-05-31 06:48:15 -07:00
2019-06-22 08:17:14 +02:00
2019-06-11 12:22:49 +02:00
2018-05-30 07:50:44 +02:00
2018-02-25 11:05:45 +01:00