diff options
author | Andre Przywara <andre.przywara@arm.com> | 2016-11-20 14:56:55 +0000 |
---|---|---|
committer | Jagan Teki <jagan@openedev.com> | 2016-11-21 15:05:08 +0530 |
commit | 2334c4e705d190fe0f4b385da65ba29231aaed90 (patch) | |
tree | 965e4a160c140bbcf8d2e20784376ae1df5be75e /drivers | |
parent | 94b653b3dfd2091fefb168fbee0f4c5487e7fc35 (diff) |
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: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/mtd/spi/sunxi_spi_spl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sunxi_spi_spl.c b/drivers/mtd/spi/sunxi_spi_spl.c index 67c7edd92d..75023149a4 100644 --- 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; |