Skip to content

Commit

Permalink
[SPARC64]: Fix device type matching in VIO's devspec_show().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Fabio Massimo Di Nitto authored and David S. Miller committed Jul 20, 2007
1 parent da68e08 commit 48db7b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc64/kernel/vio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 48db7b7

Please sign in to comment.