From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans de Goede Date: Sun, 13 Nov 2016 19:48:16 +0100 Subject: [U-Boot] [PATCH] drivers: SPI: sunxi SPL: fix warning In-Reply-To: <1478134692-496-1-git-send-email-andre.przywara@arm.com> References: <1478134692-496-1-git-send-email-andre.przywara@arm.com> Message-ID: <940d958d-d205-c111-cf4e-61549067f3a4@redhat.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi, On 03-11-16 01:58, Andre Przywara wrote: > Somehow an int returning function without a return statement sneaked > in. Fix it. > > Signed-off-by: Andre Przywara LGTM: Reviewed-by: Hans de Goede Regards, Hans > --- > drivers/mtd/spi/sunxi_spi_spl.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/mtd/spi/sunxi_spi_spl.c b/drivers/mtd/spi/sunxi_spi_spl.c > index 67c7edd..7502314 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; > >