gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef
authorJaehoon Chung <jh80.chung@samsung.com>
Fri, 29 Jun 2018 06:44:38 +0000 (15:44 +0900)
committerJaehoon Chung <jh80.chung@samsung.com>
Tue, 20 Oct 2020 06:13:47 +0000 (15:13 +0900)
Remove the unnecessary CONFIG_SPL_BUILD ifdef.

Change-Id: I6509cecadf17e1daa9c938a4611a1a703cffb373
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
drivers/gpio/bcm2835_gpio.c

index bf57820..0dff9ac 100644 (file)
@@ -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 = {