From: Jaehoon Chung Date: Fri, 29 Jun 2018 06:44:38 +0000 (+0900) Subject: gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef X-Git-Tag: submit/tizen/20191107.042334~64 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9191f0ffa7d0336abfcc88f44ab2ae7d607ca120;p=platform%2Fkernel%2Fu-boot.git gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef Remove the unnecessary CONFIG_SPL_BUILD ifdef. Change-Id: I6509cecadf17e1daa9c938a4611a1a703cffb373 Signed-off-by: Jaehoon Chung --- diff --git a/drivers/gpio/bcm2835_gpio.c b/drivers/gpio/bcm2835_gpio.c index 7a4b5f2d9c..f4b67f1cf0 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 = {