diff options
author | Todd Poynor <toddpoynor@google.com> | 2011-10-14 16:16:08 -0700 |
---|---|---|
committer | Todd Poynor <toddpoynor@google.com> | 2011-10-14 17:50:05 -0700 |
commit | f4fd30368434fc5cfd2bef346f6a21e601254515 (patch) | |
tree | 1581668d38ac450796047f82085453d62964e315 /drivers/gpio | |
parent | 45067883e25040dfc9a900ee184c5cb82b0e1c54 (diff) | |
download | kernel_samsung_tuna-f4fd30368434fc5cfd2bef346f6a21e601254515.zip kernel_samsung_tuna-f4fd30368434fc5cfd2bef346f6a21e601254515.tar.gz kernel_samsung_tuna-f4fd30368434fc5cfd2bef346f6a21e601254515.tar.bz2 |
GPIO: OMAP: Remove IS_ERR_VALUE calls
Change-Id: If12733e5bb468e6ba67bd2618f3c0ca8afd7d766
Signed-off-by: Todd Poynor <toddpoynor@google.com>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-omap.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/gpio/gpio-omap.c b/drivers/gpio/gpio-omap.c index 71f4628..03ee9c6 100644 --- a/drivers/gpio/gpio-omap.c +++ b/drivers/gpio/gpio-omap.c @@ -522,7 +522,7 @@ static int omap_gpio_request(struct gpio_chip *chip, unsigned offset) * enable the bank module. */ if (!bank->mod_usage) { - if (IS_ERR_VALUE(pm_runtime_get_sync(bank->dev) < 0)) { + if (pm_runtime_get_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d " "pm_runtime_get_sync failed\n", __func__, bank->id); @@ -593,7 +593,7 @@ static void omap_gpio_free(struct gpio_chip *chip, unsigned offset) * disable the bank module. */ if (!bank->mod_usage) { - if (IS_ERR_VALUE(pm_runtime_put_sync(bank->dev) < 0)) { + if (pm_runtime_put_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d " "pm_runtime_put_sync failed\n", __func__, bank->id); @@ -1185,7 +1185,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev) pm_runtime_enable(bank->dev); pm_runtime_irq_safe(bank->dev); - if (IS_ERR_VALUE(pm_runtime_get_sync(bank->dev) < 0)) { + if (pm_runtime_get_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_get_sync " "failed\n", __func__, bank->id); iounmap(bank->base); @@ -1196,7 +1196,7 @@ static int __devinit omap_gpio_probe(struct platform_device *pdev) omap_gpio_chip_init(bank); omap_gpio_show_rev(bank); - if (IS_ERR_VALUE(pm_runtime_put_sync(bank->dev) < 0)) { + if (pm_runtime_put_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_put_sync " "failed\n", __func__, bank->id); iounmap(bank->base); @@ -1394,7 +1394,7 @@ void omap2_gpio_set_edge_wakeup(void) u32 level_high = 0; u32 wkup_status = 0; - if (IS_ERR_VALUE(pm_runtime_get_sync(bank->dev) < 0)) { + if (pm_runtime_get_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_get_sync " "failed\n", __func__, bank->id); return; @@ -1421,7 +1421,7 @@ void omap2_gpio_set_edge_wakeup(void) __raw_writel(bank->context.edge_rising | (level_high & wkup_status), (bank->base + bank->regs->risingdetect)); - if (IS_ERR_VALUE(pm_runtime_put_sync_suspend(bank->dev) < 0)) { + if (pm_runtime_put_sync_suspend(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_put_sync " "failed\n", __func__, bank->id); return; @@ -1435,7 +1435,7 @@ void omap2_gpio_restore_edge_wakeup(void) list_for_each_entry(bank, &omap_gpio_list, node) { /* restore edge setting */ - if (IS_ERR_VALUE(pm_runtime_get_sync(bank->dev) < 0)) { + if (pm_runtime_get_sync(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_get_sync " "failed\n", __func__, bank->id); return; @@ -1446,7 +1446,7 @@ void omap2_gpio_restore_edge_wakeup(void) __raw_writel(bank->context.edge_rising, (bank->base + bank->regs->risingdetect)); - if (IS_ERR_VALUE(pm_runtime_put_sync_suspend(bank->dev) < 0)) { + if (pm_runtime_put_sync_suspend(bank->dev) < 0) { dev_err(bank->dev, "%s: GPIO bank %d pm_runtime_put_sync " "failed\n", __func__, bank->id); return; @@ -1465,7 +1465,7 @@ void omap2_gpio_prepare_for_idle(int off_mode) if (!bank->mod_usage || !bank->loses_context) continue; - if (IS_ERR_VALUE(pm_runtime_put_sync_suspend(bank->dev) < 0)) + if (pm_runtime_put_sync_suspend(bank->dev) < 0) dev_err(bank->dev, "%s: GPIO bank %d " "pm_runtime_put_sync failed\n", __func__, bank->id); @@ -1480,7 +1480,7 @@ void omap2_gpio_resume_after_idle(void) if (!bank->mod_usage || !bank->loses_context) continue; - if (IS_ERR_VALUE(pm_runtime_get_sync(bank->dev) < 0)) + if (pm_runtime_get_sync(bank->dev) < 0) dev_err(bank->dev, "%s: GPIO bank %d " "pm_runtime_get_sync failed\n", __func__, bank->id); |