diff options
author | Arnd Bergmann <arnd@arndb.de> | 2012-04-30 14:03:33 +0000 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-08-10 13:14:36 +0200 |
commit | de9234306bb28fe6c8c3bb908e3f9956f5276a02 (patch) | |
tree | 5ba5c3d36e9f0178ad1a709fdaf44cd31f54a9b5 /mm/page_alloc.c | |
parent | 15b5eb2d913f857ad30b0b4f1cd6867495962221 (diff) | |
download | op-kernel-dev-de9234306bb28fe6c8c3bb908e3f9956f5276a02.zip op-kernel-dev-de9234306bb28fe6c8c3bb908e3f9956f5276a02.tar.gz |
ARM: davinci: remove broken ntosd2_init_i2c
ntosd2_init_i2c walks the ntosd2_i2c_info array, which it expects to
be populated with at least one member. gcc correctly warns about
the out-of-bounds access here.
Since this can not possibly work, it's better to disable i2c
support entirely on this board.
Without this patch, building davinci_all_defconfig results in:
arch/arm/mach-davinci/board-neuros-osd2.c: In function 'davinci_ntosd2_init':
arch/arm/mach-davinci/board-neuros-osd2.c:187:20: warning: array subscript is above array bounds [-Warray-bounds]
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Sekhar Nori <nsekhar@ti.com>
Cc: Kevin Hilman <khilman@ti.com>
Cc: Andrey Porodko <panda@chelcom.ru>
Diffstat (limited to 'mm/page_alloc.c')
0 files changed, 0 insertions, 0 deletions