Searched hist:b0c4ae1a5176632e17627f05ae54be1b1bea3082 (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/drivers/gpio/ |
| H A D | sunxi_gpio.c | b0c4ae1a5176632e17627f05ae54be1b1bea3082 Sat Dec 20 03:41:25 UTC 2014 Axel Lin <axel.lin@ingics.com> mmc: sunxi: Fix misuse of gpio_direction_input()
It does not make sense to make gpio_direction_input() return the gpio input status. The return value of gpio_direction_input() is inconsistent if CONFIG_DM_GPIO is defined. And we don't need to call gpio_direction_input() int sunxi_mmc_getcd(). Just init the gpio once in mmc_resource_init() is enough.
Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
|
| /rk3399_rockchip-uboot/drivers/mmc/ |
| H A D | sunxi_mmc.c | b0c4ae1a5176632e17627f05ae54be1b1bea3082 Sat Dec 20 03:41:25 UTC 2014 Axel Lin <axel.lin@ingics.com> mmc: sunxi: Fix misuse of gpio_direction_input()
It does not make sense to make gpio_direction_input() return the gpio input status. The return value of gpio_direction_input() is inconsistent if CONFIG_DM_GPIO is defined. And we don't need to call gpio_direction_input() int sunxi_mmc_getcd(). Just init the gpio once in mmc_resource_init() is enough.
Signed-off-by: Axel Lin <axel.lin@ingics.com> Reviewed-by: Simon Glass <sjg@chromium.org> Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
|