diff options
author | Nicolas Schichan <nschichan@freebox.fr> | 2015-03-12 17:00:58 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-03-25 13:47:55 +0100 |
commit | 2ec459f2a77b808c1e5a3616c88b613d3f720c8d (patch) | |
tree | 2132aad12bf88b37f477664f16be281a530350a2 /arch/mips/loongson | |
parent | c5b367835cfc7a8ef53b9670a409ffcc95194344 (diff) | |
download | op-kernel-dev-2ec459f2a77b808c1e5a3616c88b613d3f720c8d.zip op-kernel-dev-2ec459f2a77b808c1e5a3616c88b613d3f720c8d.tar.gz |
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: 14e85c0e69d5 ("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>
Diffstat (limited to 'arch/mips/loongson')
0 files changed, 0 insertions, 0 deletions