提交 2b12797c 编写于 作者: E Eric Miao 提交者: Russell King

[ARM] pxa: merge common cpu_is_pxa255() code together

Signed-off-by: NEric Miao <eric.miao@marvell.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 2276f03b
...@@ -348,10 +348,6 @@ static int __init pxa25x_init(void) ...@@ -348,10 +348,6 @@ static int __init pxa25x_init(void)
{ {
int i, ret = 0; int i, ret = 0;
/* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */
if (cpu_is_pxa255())
clks_register(&pxa25x_hwuart_clk, 1);
if (cpu_is_pxa21x() || cpu_is_pxa25x()) { if (cpu_is_pxa21x() || cpu_is_pxa25x()) {
reset_status = RCSR; reset_status = RCSR;
...@@ -375,9 +371,11 @@ static int __init pxa25x_init(void) ...@@ -375,9 +371,11 @@ static int __init pxa25x_init(void)
return ret; return ret;
} }
/* Only add HWUART for PXA255/26x; PXA210/250/27x do not have it. */ /* Only add HWUART for PXA255/26x; PXA210/250 do not have it. */
if (cpu_is_pxa255()) if (cpu_is_pxa255()) {
clks_register(&pxa25x_hwuart_clk, 1);
ret = platform_device_register(&pxa_device_hwuart); ret = platform_device_register(&pxa_device_hwuart);
}
return ret; return ret;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册