spi: set spi chipselect gpios HIGH in io_init function

This commit is contained in:
lyx
2010-09-13 00:40:56 -07:00
parent febee43fda
commit eced8dbd6f

3
arch/arm/mach-rk2818/board-raho.c Normal file → Executable file
View File

@@ -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;