linux/drivers/media/platform/exynos-gsc
Arnd Bergmann aff093d4bb [media] exynos-gsc: avoid build warning without CONFIG_OF
When building the exynos-gsc driver with CONFIG_OF disabled, we get
a warning about an out-of-bounds access:

drivers/media/platform/exynos-gsc/gsc-core.c: In function 'gsc_probe':
drivers/media/platform/exynos-gsc/gsc-core.c:1078:34: error: array subscript is above array bounds [-Werror=array-bounds]

This is harmless because the driver will never be used without CONFIG_OF,
but it's better to avoid the warning anyway. Checking the return value
of of_alias_get_id() for an error condition is probably a good idea
anyway, and it makes sure the compiler can verify that we don't get
into that situation.

Fixes: 26a7ed9c18 ("[media] exynos-gsc: remove an always false condition")

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2016-05-09 18:38:33 -03:00
..
Makefile [media] exynos-gsc: Add missing Makefile 2012-09-15 15:09:34 -03:00
gsc-core.c [media] exynos-gsc: avoid build warning without CONFIG_OF 2016-05-09 18:38:33 -03:00
gsc-core.h [media] exynos-gsc: remove non-device-tree init code 2016-04-13 16:24:39 -03:00
gsc-m2m.c [media] gsc-m2m: Use an unsigned data type for a variable 2016-01-25 15:15:37 -02:00
gsc-regs.c [media] gsc: Use %pad for dma_addr_t 2014-08-26 18:52:04 -03:00
gsc-regs.h [media] exynos-gsc: Fix settings for input and output image RGB type 2012-11-26 18:43:14 -02:00