Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48db7b7c authored by Fabio Massimo Di Nitto's avatar Fabio Massimo Di Nitto Committed by David S. Miller
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
parent da68e081
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -103,9 +103,9 @@ static ssize_t devspec_show(struct device *dev,
	struct vio_dev *vdev = to_vio_dev(dev);
	struct vio_dev *vdev = to_vio_dev(dev);
	const char *str = "none";
	const char *str = "none";


	if (!strcmp(vdev->type, "network"))
	if (!strcmp(vdev->type, "vnet-port"))
		str = "vnet";
		str = "vnet";
	else if (!strcmp(vdev->type, "block"))
	else if (!strcmp(vdev->type, "vdc-port"))
		str = "vdisk";
		str = "vdisk";


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