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)
}
if (strncmp(name, "vty", 3) == 0) {
char *compatible;
compatible = (char *)get_property(stdout_node, "compatible", 0);
if (compatible && (strncmp(compatible, "hvterm1", 7) == 0)) {
if (device_is_compatible(stdout_node, "hvterm1")) {
termno = (u32 *)get_property(stdout_node, "reg", 0);
if (termno) {
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