|
@@ -158,9 +158,10 @@ static void spi0_disable_clock(void)
|
|
(1 << AHB_RESET_SPI0_SHIFT));
|
|
(1 << AHB_RESET_SPI0_SHIFT));
|
|
}
|
|
}
|
|
|
|
|
|
-static int spi0_init(void)
|
|
|
|
|
|
+static void spi0_init(void)
|
|
{
|
|
{
|
|
unsigned int pin_function = SUNXI_GPC_SPI0;
|
|
unsigned int pin_function = SUNXI_GPC_SPI0;
|
|
|
|
+
|
|
if (IS_ENABLED(CONFIG_MACH_SUN50I))
|
|
if (IS_ENABLED(CONFIG_MACH_SUN50I))
|
|
pin_function = SUN50I_GPC_SPI0;
|
|
pin_function = SUN50I_GPC_SPI0;
|
|
|
|
|