浏览代码

[PATCH] powerpc: update iSeries vdevice

Make it look more like the pSeries vdevice tree.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Stephen Rothwell 19 年之前
父节点
当前提交
dc3c9b8ca2
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      arch/powerpc/platforms/iseries/setup.c

+ 3 - 2
arch/powerpc/platforms/iseries/setup.c

@@ -921,13 +921,14 @@ void dt_vdevices(struct iseries_flat_dt *dt)
 	char buf[32];
 
 	dt_start_node(dt, "vdevice");
+	dt_prop_str(dt, "device_type", "vdevice");
+	dt_prop_str(dt, "compatible", "IBM,iSeries-vdevice");
 	dt_prop_u32(dt, "#address-cells", 1);
 	dt_prop_u32(dt, "#size-cells", 0);
 
-	snprintf(buf, sizeof(buf), "viocons@%08x", reg);
+	snprintf(buf, sizeof(buf), "vty@%08x", reg);
 	dt_start_node(dt, buf);
 	dt_prop_str(dt, "device_type", "serial");
-	dt_prop_str(dt, "compatible", "");
 	dt_prop_u32(dt, "reg", reg);
 	dt_end_node(dt);
 	reg++;