Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: Alchemy: Remove duplicate initializer

We get a harmless warning about a duplicate initalizer for the
i2c board info structure:

arch/mips/alchemy/board-gpr.c:239:11: error: initialized field overwritten [-Werror=override-init]

As both initializers have the identical value, we can simply drop
the second one.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/15046/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

authored by

Arnd Bergmann and committed by
Ralf Baechle
e4558729 8c9b23ff

-1
-1
arch/mips/alchemy/board-gpr.c
··· 236 236 static struct i2c_board_info gpr_i2c_info[] __initdata = { 237 237 { 238 238 I2C_BOARD_INFO("lm83", 0x18), 239 - .type = "lm83" 240 239 } 241 240 }; 242 241