Skip to content
Snippets Groups Projects
Commit 0abb0aee authored by Piotr Wilczek's avatar Piotr Wilczek Committed by Minkyu Kang
Browse files

arm:exynos:gpio: fix s5p_gpio_part_max for exynos4x12


This patch fix wrong value returned by 's5p_gpio_part_max' function
for Exynos4412.

Signed-off-by: default avatarPiotr Wilczek <p.wilczek@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarMinkyu Kang <mk7.kang@samsung.com>
parent 9ed887ca
No related branches found
No related tags found
No related merge requests found
...@@ -290,10 +290,19 @@ static inline unsigned int s5p_gpio_part_max(int nr) ...@@ -290,10 +290,19 @@ static inline unsigned int s5p_gpio_part_max(int nr)
return EXYNOS5_GPIO_PART2_MAX; return EXYNOS5_GPIO_PART2_MAX;
} else if (cpu_is_exynos4()) { } else if (cpu_is_exynos4()) {
if (nr < EXYNOS4_GPIO_PART1_MAX) if (proid_is_exynos4412()) {
return 0; if (nr < EXYNOS4X12_GPIO_PART1_MAX)
else return 0;
return EXYNOS4_GPIO_PART1_MAX; else if (nr < EXYNOS4X12_GPIO_PART2_MAX)
return EXYNOS4X12_GPIO_PART1_MAX;
else
return EXYNOS4X12_GPIO_PART2_MAX;
} else {
if (nr < EXYNOS4_GPIO_PART1_MAX)
return 0;
else
return EXYNOS4_GPIO_PART1_MAX;
}
} }
return 0; return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment