Commit 008ca431 authored by Russell King's avatar Russell King

ARM: EXYNOS: remove unnecessary use of IS_ERR_VALUE()

s5p_register_gpio_interrupt() returns 0 or positive for success, and
-ve for errors, so just use the standard >= 0 test.
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d98642c3
...@@ -1252,7 +1252,7 @@ static void __init nuri_camera_init(void) ...@@ -1252,7 +1252,7 @@ static void __init nuri_camera_init(void)
} }
m5mols_board_info.irq = s5p_register_gpio_interrupt(GPIO_CAM_8M_ISP_INT); m5mols_board_info.irq = s5p_register_gpio_interrupt(GPIO_CAM_8M_ISP_INT);
if (!IS_ERR_VALUE(m5mols_board_info.irq)) if (m5mols_board_info.irq >= 0)
s3c_gpio_cfgpin(GPIO_CAM_8M_ISP_INT, S3C_GPIO_SFN(0xF)); s3c_gpio_cfgpin(GPIO_CAM_8M_ISP_INT, S3C_GPIO_SFN(0xF));
else else
pr_err("%s: Failed to configure 8M_ISP_INT GPIO\n", __func__); pr_err("%s: Failed to configure 8M_ISP_INT GPIO\n", __func__);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment