ramips: rt3883: fix GPIO reservation for the SPI pins
authorGabor Juhos <juhosg@openwrt.org>
Sun, 27 May 2012 17:09:56 +0000 (17:09 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Sun, 27 May 2012 17:09:56 +0000 (17:09 +0000)
SVN-Revision: 31920

target/linux/ramips/files/arch/mips/ralink/rt3883/rt3883.c

index 9f9141266c268d5f46a949e1e81218f172eb86d0..e397b854ea99618df0503bec6041ebb2c83e7429 100644 (file)
@@ -156,7 +156,7 @@ void __init rt3883_gpio_init(u32 mode)
                rt3883_gpio_reserve(RT3883_GPIO_I2C_SD, RT3883_GPIO_I2C_SCLK);
 
        if ((mode & RT3883_GPIO_MODE_SPI) == 0)
-               rt3883_gpio_reserve(RT3883_GPIO_SPI_CS0, RT3883_GPIO_SPI_CLK);
+               rt3883_gpio_reserve(RT3883_GPIO_SPI_CS0, RT3883_GPIO_SPI_MISO);
 
        t = mode >> RT3883_GPIO_MODE_UART0_SHIFT;
        t &= RT3883_GPIO_MODE_UART0_MASK;