Skip to content

Commit 48db7b7

Browse files
Fabio Massimo Di NittoDavid S. Miller
authored andcommitted
[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 <davem@davemloft.net>
1 parent da68e08 commit 48db7b7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎arch/sparc64/kernel/vio.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,9 @@ static ssize_t devspec_show(struct device *dev,
103103
struct vio_dev *vdev = to_vio_dev(dev);
104104
const char *str = "none";
105105

106-
if (!strcmp(vdev->type, "network"))
106+
if (!strcmp(vdev->type, "vnet-port"))
107107
str = "vnet";
108-
else if (!strcmp(vdev->type, "block"))
108+
else if (!strcmp(vdev->type, "vdc-port"))
109109
str = "vdisk";
110110

111111
return sprintf(buf, "%s\n", str);

0 commit comments

Comments
 (0)