projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94b653b
)
drivers: SPI: sunxi SPL: fix warning
author
Andre Przywara
<andre.przywara@arm.com>
Sun, 20 Nov 2016 14:56:55 +0000
(14:56 +0000)
committer
Jagan Teki
<jagan@openedev.com>
Mon, 21 Nov 2016 09:35:08 +0000
(15:05 +0530)
Somehow an int returning function without a return statement sneaked
in, fix it.
Also fix some whitespace damage on the way.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
drivers/mtd/spi/sunxi_spi_spl.c
patch
|
blob
|
history
diff --git
a/drivers/mtd/spi/sunxi_spi_spl.c
b/drivers/mtd/spi/sunxi_spi_spl.c
index 67c7edd92d0c6b1d7b20d072ab50085ce9bcc5b8..75023149a4d3749e3526b315104c93a7df43be00 100644
(file)
--- a/
drivers/mtd/spi/sunxi_spi_spl.c
+++ b/
drivers/mtd/spi/sunxi_spi_spl.c
@@
-158,9
+158,10
@@
static void spi0_disable_clock(void)
(1 << AHB_RESET_SPI0_SHIFT));
}
-static
int
spi0_init(void)
+static
void
spi0_init(void)
{
unsigned int pin_function = SUNXI_GPC_SPI0;
+
if (IS_ENABLED(CONFIG_MACH_SUN50I))
pin_function = SUN50I_GPC_SPI0;