Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34084
b: refs/heads/master
c: a0a428e
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Rothwell authored and Paul Mackerras committed Aug 25, 2006
1 parent 6162bfd commit d6b1334
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9a2ded55c40ad17b8b12f87c592a40b2e8593c4d
refs/heads/master: a0a428e30077fd64c39aadf5221cf2c7a14dc281
9 changes: 5 additions & 4 deletions trunk/arch/powerpc/platforms/iseries/viopath.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ static int proc_viopath_show(struct seq_file *m, void *v)
HvLpEvent_Rc hvrc;
DECLARE_MUTEX_LOCKED(Semaphore);
struct device_node *node;
const char *sysid;

buf = kmalloc(HW_PAGE_SIZE, GFP_KERNEL);
if (!buf)
Expand Down Expand Up @@ -152,15 +153,15 @@ static int proc_viopath_show(struct seq_file *m, void *v)
seq_printf(m, "AVAILABLE_VETH=%x\n", vlanMap);

node = of_find_node_by_path("/");
buf = NULL;
sysid = NULL;
if (node != NULL)
buf = get_property(node, "system-id", NULL);
sysid = get_property(node, "system-id", NULL);

if (buf == NULL)
if (sysid == NULL)
seq_printf(m, "SRLNBR=<UNKNOWN>\n");
else
/* Skip "IBM," on front of serial number, see dt.c */
seq_printf(m, "SRLNBR=%s\n", buf + 4);
seq_printf(m, "SRLNBR=%s\n", sysid + 4);

of_node_put(node);

Expand Down

0 comments on commit d6b1334

Please sign in to comment.