Skip to content
Snippets Groups Projects
Commit 2334c4e7 authored by Andre Przywara's avatar Andre Przywara Committed by Jagan Teki
Browse files

drivers: SPI: sunxi SPL: fix warning


Somehow an int returning function without a return statement sneaked
in, fix it.
Also fix some whitespace damage on the way.

Signed-off-by: default avatarAndre Przywara <andre.przywara@arm.com>
Reviewed-by: default avatarJagan Teki <jagan@openedev.com>
parent 94b653b3
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment