linux_dsm_epyc7002/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 MIPS: BCM63XX: setup the HSSPI clock rate 2014-01-22 20:18:49 +01:00
cpu.c MIPS: Remove useless parentheses 2014-11-24 07:44:49 +01:00
cs.c MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs. 2009-09-17 20:07:52 +02:00
dev-dsp.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
dev-enet.c MIPS: BCM63xx: Remove !RUNTIME_DETECT usage from enet code 2014-07-30 15:24:01 +02:00
dev-flash.c MIPS: BCM63XX: add support for BCM3368 Cable Modem 2013-07-01 15:10:53 +02:00
dev-hsspi.c MIPS: BCM63XX: add HSSPI platform device and register it 2014-01-22 20:18:50 +01:00
dev-pcmcia.c mips: mark const init data with __initconst instead of __initdata 2012-07-19 11:23:43 +02:00
dev-rng.c MIPS: BCM63XX: add RNG driver platform_device stub 2012-07-24 16:33:10 +02:00
dev-spi.c MIPS: BCM63xx: Remove !RUNTIME_DETECT from spi code 2014-07-30 15:23:32 +02:00
dev-uart.c MIPS: BCM63XX: add support for BCM3368 Cable Modem 2013-07-01 15:10:53 +02:00
dev-usb-usbd.c MIPS: BCM63XX: Create platform_device for USBD 2012-08-30 20:15:52 +02:00
dev-wdt.c MIPS: BCM63XX: Fix platform_devices id 2012-07-24 16:33:09 +02:00
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 MIPS: BCM63XX: export PSI size from nvram 2013-08-05 18:58:55 +01:00
Platform MIPS: BCM63xx: Migrate to new platform makefile style. 2010-08-05 13:25:54 +01:00
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 MIPS: BCM63xx: Convert timer locks to raw spinlocks. 2010-02-27 12:53:35 +01:00