diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/nand/ams-delta.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/nand/ams-delta.c b/drivers/mtd/nand/ams-delta.c index 26d42987971f..782994ead0e8 100644 --- a/drivers/mtd/nand/ams-delta.c +++ b/drivers/mtd/nand/ams-delta.c | |||
@@ -145,7 +145,7 @@ static void ams_delta_hwcontrol(struct mtd_info *mtd, int cmd, | |||
145 | 145 | ||
146 | static int ams_delta_nand_ready(struct mtd_info *mtd) | 146 | static int ams_delta_nand_ready(struct mtd_info *mtd) |
147 | { | 147 | { |
148 | return omap_get_gpio_datain(AMS_DELTA_GPIO_PIN_NAND_RB); | 148 | return gpio_get_value(AMS_DELTA_GPIO_PIN_NAND_RB); |
149 | } | 149 | } |
150 | 150 | ||
151 | /* | 151 | /* |
@@ -185,7 +185,7 @@ static int __init ams_delta_init(void) | |||
185 | this->read_buf = ams_delta_read_buf; | 185 | this->read_buf = ams_delta_read_buf; |
186 | this->verify_buf = ams_delta_verify_buf; | 186 | this->verify_buf = ams_delta_verify_buf; |
187 | this->cmd_ctrl = ams_delta_hwcontrol; | 187 | this->cmd_ctrl = ams_delta_hwcontrol; |
188 | if (!omap_request_gpio(AMS_DELTA_GPIO_PIN_NAND_RB)) { | 188 | if (gpio_request(AMS_DELTA_GPIO_PIN_NAND_RB, "nand_rdy") == 0) { |
189 | this->dev_ready = ams_delta_nand_ready; | 189 | this->dev_ready = ams_delta_nand_ready; |
190 | } else { | 190 | } else { |
191 | this->dev_ready = NULL; | 191 | this->dev_ready = NULL; |