Commit 69e3e272 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: use device_is_compatible() instead of manual strcmp, from Hollis Blanchard

From: Anton Blanchard <anton@samba.org>

use device_is_compatible() instead of manual strcmp, from Hollis Blanchard
parent 7dec0b46
...@@ -234,9 +234,7 @@ static int find_udbg_vterm(void) ...@@ -234,9 +234,7 @@ static int find_udbg_vterm(void)
} }
if (strncmp(name, "vty", 3) == 0) { if (strncmp(name, "vty", 3) == 0) {
char *compatible; if (device_is_compatible(stdout_node, "hvterm1")) {
compatible = (char *)get_property(stdout_node, "compatible", 0);
if (compatible && (strncmp(compatible, "hvterm1", 7) == 0)) {
termno = (u32 *)get_property(stdout_node, "reg", 0); termno = (u32 *)get_property(stdout_node, "reg", 0);
if (termno) { if (termno) {
vtermno = termno[0]; vtermno = termno[0];
......
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