From: Fabio Massimo Di Nitto Date: Wed, 18 Jul 2007 21:37:26 +0000 (-0700) Subject: [SPARC64]: Fix device type matching in VIO's devspec_show(). X-Git-Tag: v2.6.23-rc1~230^2~6 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=48db7b7c50cdb06c85f0ff01b5c19ac34903048b;p=linux-2.6 [SPARC64]: Fix device type matching in VIO's devspec_show(). 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 --- diff --git a/arch/sparc64/kernel/vio.c b/arch/sparc64/kernel/vio.c index 8d3cc4fdb5..7e65b5a28b 100644 --- a/arch/sparc64/kernel/vio.c +++ b/arch/sparc64/kernel/vio.c @@ -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);