spi: set spi chipselect gpios HIGH in io_init function
authorlyx <lyx@rock-chips.com>
Mon, 13 Sep 2010 07:40:56 +0000 (00:40 -0700)
committerlyx <lyx@rock-chips.com>
Mon, 13 Sep 2010 07:41:39 +0000 (00:41 -0700)
arch/arm/mach-rk2818/board-raho.c [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 4a594cb..c11ab16
@@ -1262,7 +1262,8 @@ static int spi_io_init(struct spi_cs_gpio *cs_gpios, int cs_num)
                                }
                                printk("[fun:%s, line:%d], gpio request err\n", __func__, __LINE__);
                                return -1;
-                       }
+                       }                       
+                       gpio_direction_output(cs_gpios[i].cs_gpio, GPIO_HIGH);
                }
        }
        return 0;