]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ARM: tegra: Remove board_init_funcs array
authorArnd Bergmann <arnd@arndb.de>
Wed, 22 Jun 2016 12:39:41 +0000 (14:39 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 11 Jul 2016 14:47:53 +0000 (16:47 +0200)
commitda35cbcafad3d46daa96a6f01022f11842e8e7b6
treeb098571e4069ca41a1bf83b3be878a183685628a
parentfa45caf2ee319fc8cb6ba5c7e6ff8cb36efc0d1a
ARM: tegra: Remove board_init_funcs array

In a configuration that enables CONFIG_UBSAN_SANITIZE_ALL, I am getting
a section mismatch warning for tegra20:

WARNING: arch/arm/mach-tegra/built-in.o(.data+0x6e0): Section mismatch in reference from the variable board_init_funcs to the function .init.text:paz00_init()

The array is no longer useful here since there is only one entry,
so we can simply call the function directly after checking
of_machine_is_compatible(). This fixes the section mismatch
and is easier to read.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/mach-tegra/tegra.c