powerpc/vio: Fix modalias_show return values
authorPrarit Bhargava <prarit@redhat.com>
Mon, 23 Sep 2013 13:33:36 +0000 (09:33 -0400)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 3 Oct 2013 07:25:16 +0000 (17:25 +1000)
commite82b89a6f19bae73fb064d1b3dd91fcefbb478f4
treedf7d3fcff80cdb3dce5fe01ca3619828d8e0d1bb
parent1cf389df090194a0976dc867b7fffe99d9d490cb
powerpc/vio: Fix modalias_show return values

modalias_show() should return an empty string on error, not -ENODEV.

This causes the following false and annoying error:

> find /sys/devices -name modalias -print0 | xargs -0 cat >/dev/null
cat: /sys/devices/vio/4000/modalias: No such device
cat: /sys/devices/vio/4001/modalias: No such device
cat: /sys/devices/vio/4002/modalias: No such device
cat: /sys/devices/vio/4004/modalias: No such device
cat: /sys/devices/vio/modalias: No such device

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
CC: <stable@vger.kernel.org>
arch/powerpc/kernel/vio.c