projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec8551c
)
gpio: bcm2835: remove the unnecessary CONFIG_SPL_BUILD ifdef
author
Jaehoon Chung
<jh80.chung@samsung.com>
Fri, 29 Jun 2018 06:44:38 +0000
(15:44 +0900)
committer
Jaehoon 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
patch
|
blob
|
history
diff --git
a/drivers/gpio/bcm2835_gpio.c
b/drivers/gpio/bcm2835_gpio.c
index
bf57820
..
0dff9ac
100644
(file)
--- 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 = {