]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Fix device type matching in VIO's devspec_show().
authorFabio Massimo Di Nitto <fabbione@ubuntu.com>
Wed, 18 Jul 2007 21:37:26 +0000 (14:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 20 Jul 2007 04:27:10 +0000 (21:27 -0700)
with the recent renames, we forgot to update the matches for
devspec. This is required to keep udev working and autoload modules.

Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/kernel/vio.c

index 8d3cc4fdb557018740e1f38076ef6a09b9a2f265..7e65b5a28bffb77a3c136750245c87c080d273b4 100644 (file)
@@ -103,9 +103,9 @@ static ssize_t devspec_show(struct device *dev,
        struct vio_dev *vdev = to_vio_dev(dev);
        const char *str = "none";
 
-       if (!strcmp(vdev->type, "network"))
+       if (!strcmp(vdev->type, "vnet-port"))
                str = "vnet";
-       else if (!strcmp(vdev->type, "block"))
+       else if (!strcmp(vdev->type, "vdc-port"))
                str = "vdisk";
 
        return sprintf(buf, "%s\n", str);