ARM: cns3xxx: fix allmodconfig panic in pci driver
authorXia Kaixu <kaixu.xia@linaro.org>
Wed, 3 Sep 2014 13:18:12 +0000 (21:18 +0800)
committerArnd Bergmann <arnd@arndb.de>
Thu, 4 Sep 2014 21:39:57 +0000 (23:39 +0200)
commit0a2e912d296201c476fe5d7ba6ac23a66325935f
treeac87d60dde207d49e6c6da95e15c34e850603706
parentc96bfaffb783b86555e13d97e871c2adeb97d613
ARM: cns3xxx: fix allmodconfig panic in pci driver

The kernel panic occurs when running an allmodconfig kernel on
OMAP4460. The inicall "cns3xxx_pcie_init" does not check which
hardware it's running on and just tries to access to its specific
registers. Now call it from .init_late callback from the two
machine descriptors.

Signed-off-by: Xia Kaixu <kaixu.xia@linaro.org>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Anton Vorontsov <anton@enomsg.org>
Cc: Felix Fietkau <nbd@openwrt.org>
Cc: Imre Kaloz <kaloz@openwrt.org>
Cc: linaro-kernel@lists.linaro.org
Cc: linux-arm-kernel@lists.infradead.org
arch/arm/mach-cns3xxx/cns3420vb.c
arch/arm/mach-cns3xxx/core.c
arch/arm/mach-cns3xxx/core.h
arch/arm/mach-cns3xxx/pcie.c
drivers/cpufreq/Kconfig.arm