kernel_optimize_test/arch/mips/bcm63xx
Nicolas Schichan 2ec459f2a7 MIPS: BCM63xx: Move bcm63xx_gpio_init() to bcm63xx_register_devices().
When called from prom init code, bcm63xx_gpio_init() will fail as it
will call gpiochip_add() which relies on a working kmalloc() to alloc
the gpio_desc array and kmalloc is not useable yet at prom init time.

Move bcm63xx_gpio_init() to bcm63xx_register_devices() (an
arch_initcall) where kmalloc works.

Fixes: 14e85c0e69 ("gpio: remove gpio_descs global array")

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: Alexandre Courbot <acourbot@nvidia.com>
Patchwork: https://patchwork.linux-mips.org/patch/9530/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
2015-03-25 13:47:55 +01:00
..
boards MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
clk.c
cpu.c MIPS: Remove useless parentheses 2014-11-24 07:44:49 +01:00
cs.c
dev-dsp.c
dev-enet.c MIPS: BCM63xx: Remove !RUNTIME_DETECT usage from enet code 2014-07-30 15:24:01 +02:00
dev-flash.c
dev-hsspi.c MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
dev-pcmcia.c
dev-rng.c
dev-spi.c MIPS: BCM63xx: Remove !RUNTIME_DETECT from spi code 2014-07-30 15:23:32 +02:00
dev-uart.c
dev-usb-usbd.c
dev-wdt.c
early_printk.c mips: delete non-required instances of include <linux/init.h> 2014-01-24 22:39:56 +01:00
gpio.c MIPS: BCM63xx: Remove !RUNTIME_DETECT code from gpio code 2014-07-30 15:23:06 +02:00
irq.c MIPS: BCM63xx: delete double assignment 2014-08-26 02:18:58 +02:00
Kconfig MIPS: BCM63XX: let the individual SoCs select the appropriate CPUs 2014-01-22 20:18:53 +01:00
Makefile MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
nvram.c
Platform
prom.c MIPS: BCM63xx: Move bcm63xx_gpio_init() to bcm63xx_register_devices(). 2015-03-25 13:47:55 +01:00
reset.c MIPS: BCM63xx: Remove !RUNTIME_DETECT from reset code 2014-07-30 15:22:29 +02:00
setup.c MIPS: BCM63xx: Move bcm63xx_gpio_init() to bcm63xx_register_devices(). 2015-03-25 13:47:55 +01:00
timer.c