powerpc/celleb: Use for_each_compatible_node() macro

Use for_each_compatible_node() macro instead of open coding it.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
This commit is contained in:
Wei Yongjun 2012-12-03 19:17:01 +00:00 коммит произвёл Benjamin Herrenschmidt
Родитель 7943b31000
Коммит 176ebf8736
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -42,14 +42,13 @@ static struct {
static int __init txx9_serial_init(void)
{
extern int early_serial_txx9_setup(struct uart_port *port);
struct device_node *node = NULL;
struct device_node *node;
int i;
struct uart_port req;
struct of_irq irq;
struct resource res;
while ((node = of_find_compatible_node(node,
"serial", "toshiba,sio-scc")) != NULL) {
for_each_compatible_node(node, "serial", "toshiba,sio-scc") {
for (i = 0; i < ARRAY_SIZE(txx9_scc_tab); i++) {
if (!(txx9_serial_bitmap & (1<<i)))
continue;