mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 04:48:04 +09:00
spi: set spi chipselect gpios HIGH in io_init function
This commit is contained in:
3
arch/arm/mach-rk2818/board-raho.c
Normal file → Executable file
3
arch/arm/mach-rk2818/board-raho.c
Normal file → Executable 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;
|
||||
|
||||
Reference in New Issue
Block a user