[PATCH] powerpc: update iSeries viodasd device-tree entries
authorStephen Rothwell <sfr@canb.auug.org.au>
Mon, 15 May 2006 03:41:22 +0000 (13:41 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 19 May 2006 04:35:28 +0000 (14:35 +1000)
These devices should have device_type block and a unique compatible entry.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/iseries/setup.c
drivers/block/viodasd.c

index 0a082578193708540c443d87200af4cf1997225e..285f2b2e7d83640e6fa153b020053349ed56a448 100644 (file)
@@ -971,8 +971,8 @@ void dt_vdevices(struct iseries_flat_dt *dt)
        for (i = 0; i < HVMAXARCHITECTEDVIRTUALDISKS; i++) {
                snprintf(buf, 32, "viodasd@%08x", reg + i);
                dt_start_node(dt, buf);
-               dt_prop_str(dt, "device_type", "viodasd");
-               dt_prop_str(dt, "compatible", "");
+               dt_prop_str(dt, "device_type", "block");
+               dt_prop_str(dt, "compatible", "IBM,iSeries-viodasd");
                dt_prop_u32(dt, "reg", reg + i);
                dt_prop_u32(dt, "linux,unit_address", i);
                dt_end_node(dt);
index f63e07bd9f9c4e3b23f20c626c95e260451f1639..b0df4f5ab97afff4d490e9781fae37bd9984a210 100644 (file)
@@ -747,7 +747,7 @@ static int viodasd_remove(struct vio_dev *vdev)
  * support.
  */
 static struct vio_device_id viodasd_device_table[] __devinitdata = {
-       { "viodasd", "" },
+       { "block", "IBM,iSeries-viodasd" },
        { "", "" }
 };
 MODULE_DEVICE_TABLE(vio, viodasd_device_table);