projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da68e08
)
[SPARC64]: Fix device type matching in VIO's devspec_show().
author
Fabio Massimo Di Nitto
<fabbione@ubuntu.com>
Wed, 18 Jul 2007 21:37:26 +0000
(14:37 -0700)
committer
David 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
patch
|
blob
|
history
diff --git
a/arch/sparc64/kernel/vio.c
b/arch/sparc64/kernel/vio.c
index 8d3cc4fdb557018740e1f38076ef6a09b9a2f265..7e65b5a28bffb77a3c136750245c87c080d273b4 100644
(file)
--- 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);