From 731675eff77301e4c749366f0a037f8c62d9b4fc Mon Sep 17 00:00:00 2001 From: Jaehoon Chung Date: Fri, 29 Jun 2018 15:44:38 +0900 Subject: [PATCH] gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef Remove the unnecessary CONFIG_SPL_BUILD ifdef. Change-Id: I6509cecadf17e1daa9c938a4611a1a703cffb373 Signed-off-by: Jaehoon Chung --- drivers/gpio/bcm2835_gpio.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index bf578204ea..0dff9ac711 100644 --- a/drivers/gpio/bcm2835_gpio.c +++ b/drivers/gpio/bcm2835_gpio.c @@ -76,7 +76,6 @@ static int bcm2835_gpio_set_value(struct udevice *dev, unsigned gpio, static int bcm2835_gpio_get_function(struct udevice *dev, unsigned offset) { -#ifndef CONFIG_SPL_BUILD struct bcm2835_gpios *priv = dev_get_priv(dev); int funcid; @@ -90,9 +89,6 @@ static int bcm2835_gpio_get_function(struct udevice *dev, unsigned offset) default: return GPIOF_FUNC; } -#else - return GPIOF_FUNC; -#endif } static const struct dm_gpio_ops gpio_bcm2835_ops = { -- 2.34.1