Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3dea19e8 authored by Peter De Schrijver (NVIDIA)'s avatar Peter De Schrijver (NVIDIA) Committed by Russell King
Browse files

ARM: 7244/1: mach-shmobile: Use CONFIG_ARCH_NR_GPIO



Add default value for CONFIG_ARCH_NR_GPIO to Kconfig and remove the
definition in gpio.h.

Signed-off-by: default avatarPeter De Schrijver <pdeschrijver@nvidia.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 44986ab0
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1567,7 +1567,7 @@ config LOCAL_TIMERS


config ARCH_NR_GPIO
config ARCH_NR_GPIO
	int
	int
	default 1024 if ARCH_TEGRA
	default 1024 if ARCH_SHMOBILE || ARCH_TEGRA
	default 0
	default 0
	help
	help
	  Maximum number of GPIOs in the system.
	  Maximum number of GPIOs in the system.
+0 −2
Original line number Original line Diff line number Diff line
@@ -12,8 +12,6 @@


#include <linux/kernel.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/errno.h>

#define ARCH_NR_GPIOS 1024
#include <linux/sh_pfc.h>
#include <linux/sh_pfc.h>


#ifdef CONFIG_GPIOLIB
#ifdef CONFIG_GPIOLIB