2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 01:34:00 +08:00

gpio: samsung: silent build warning for EXYNOS5 SoCs

This patch fixes following warning:

drivers/gpio/gpio-samsung.c:450:32: warning: 'exynos_gpio_cfg' defined but not used [-Wunused-variable]
drivers/gpio/gpio-samsung.c:2450:33: warning: 'exynos5_gpios_1' defined but not used [-Wunused-variable]
drivers/gpio/gpio-samsung.c:2618:33: warning: 'exynos5_gpios_2' defined but not used [-Wunused-variable]
drivers/gpio/gpio-samsung.c:2679:33: warning: 'exynos5_gpios_3' defined but not used [-Wunused-variable]
drivers/gpio/gpio-samsung.c:2715:33: warning: 'exynos5_gpios_4' defined but not used [-Wunused-variable]

Because current gpio-samsung is valid only on EXYNOS5250.

Cc: Thomas Abraham <thomas.ab@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
Kukjin Kim 2012-12-27 10:12:30 -08:00 committed by Linus Walleij
parent e4a5da51da
commit dcb9c3491a

View File

@ -445,7 +445,7 @@ static struct samsung_gpio_cfg s3c24xx_gpiocfg_banka = {
}; };
#endif #endif
#if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_ARCH_EXYNOS5) #if defined(CONFIG_ARCH_EXYNOS4) || defined(CONFIG_SOC_EXYNOS5250)
static struct samsung_gpio_cfg exynos_gpio_cfg = { static struct samsung_gpio_cfg exynos_gpio_cfg = {
.set_pull = exynos_gpio_setpull, .set_pull = exynos_gpio_setpull,
.get_pull = exynos_gpio_getpull, .get_pull = exynos_gpio_getpull,
@ -2445,7 +2445,7 @@ static struct samsung_gpio_chip exynos4_gpios_3[] = {
}; };
#endif #endif
#ifdef CONFIG_ARCH_EXYNOS5 #ifdef CONFIG_SOC_EXYNOS5250
static struct samsung_gpio_chip exynos5_gpios_1[] = { static struct samsung_gpio_chip exynos5_gpios_1[] = {
{ {
.chip = { .chip = {
@ -2613,7 +2613,7 @@ static struct samsung_gpio_chip exynos5_gpios_1[] = {
}; };
#endif #endif
#ifdef CONFIG_ARCH_EXYNOS5 #ifdef CONFIG_SOC_EXYNOS5250
static struct samsung_gpio_chip exynos5_gpios_2[] = { static struct samsung_gpio_chip exynos5_gpios_2[] = {
{ {
.chip = { .chip = {
@ -2674,7 +2674,7 @@ static struct samsung_gpio_chip exynos5_gpios_2[] = {
}; };
#endif #endif
#ifdef CONFIG_ARCH_EXYNOS5 #ifdef CONFIG_SOC_EXYNOS5250
static struct samsung_gpio_chip exynos5_gpios_3[] = { static struct samsung_gpio_chip exynos5_gpios_3[] = {
{ {
.chip = { .chip = {
@ -2710,7 +2710,7 @@ static struct samsung_gpio_chip exynos5_gpios_3[] = {
}; };
#endif #endif
#ifdef CONFIG_ARCH_EXYNOS5 #ifdef CONFIG_SOC_EXYNOS5250
static struct samsung_gpio_chip exynos5_gpios_4[] = { static struct samsung_gpio_chip exynos5_gpios_4[] = {
{ {
.chip = { .chip = {