From: Rusty Russell Date: Fri, 30 May 2008 20:09:41 +0000 (-0500) Subject: virtio: bus_id for devices should contain 'virtio' X-Git-Tag: v2.6.26-rc5~30^2~10 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=2ad3cfbac58d0a6c6e65aafd9e0e757ca3d35292;p=linux-2.6-omap-h63xx.git virtio: bus_id for devices should contain 'virtio' Chris Lalancette points out that virtio.c sets all device names to '0', '1', etc, which looks silly in /proc/interrupts. We change this from '%d' to 'virtio%d'. Signed-off-by: Rusty Russell Cc: Christian Borntraeger Cc: Martin Schwidefsky Cc: Carsten Otte Cc: Heiko Carstens Cc: Chris Lalancette Cc: Anthony Liguori --- diff --git a/drivers/virtio/virtio.c b/drivers/virtio/virtio.c index 13866789b35..59918dfc3cb 100644 --- a/drivers/virtio/virtio.c +++ b/drivers/virtio/virtio.c @@ -166,7 +166,7 @@ int register_virtio_device(struct virtio_device *dev) int err; dev->dev.bus = &virtio_bus; - sprintf(dev->dev.bus_id, "%u", dev->index); + sprintf(dev->dev.bus_id, "virtio%u", dev->index); /* We always start by resetting the device, in case a previous * driver messed it up. This also tests that code path a little. */