summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/v4l2-device.c
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-01-25 23:00:16 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-01-25 23:00:16 +0000
commit32ff0a94de197313d0c1838ab4ad3a051064b292 (patch)
tree086d35ec20ecbc111fc61dddacd39a3aafb450a2 /linux/drivers/media/video/v4l2-device.c
parente2dece7b3a29cf172128e7a3481940322ca5df20 (diff)
downloadmediapointer-dvb-s2-32ff0a94de197313d0c1838ab4ad3a051064b292.tar.gz
mediapointer-dvb-s2-32ff0a94de197313d0c1838ab4ad3a051064b292.tar.bz2
struct device - replace bus_id with dev_name(), dev_set_name()
From: Kay Sievers <kay.sievers@vrfy.org> Acked-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/v4l2-device.c')
-rw-r--r--linux/drivers/media/video/v4l2-device.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l2-device.c b/linux/drivers/media/video/v4l2-device.c
index cf9d4c7f5..8a4b74f31 100644
--- a/linux/drivers/media/video/v4l2-device.c
+++ b/linux/drivers/media/video/v4l2-device.c
@@ -34,7 +34,7 @@ int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev)
spin_lock_init(&v4l2_dev->lock);
v4l2_dev->dev = dev;
snprintf(v4l2_dev->name, sizeof(v4l2_dev->name), "%s %s",
- dev->driver->name, dev->bus_id);
+ dev->driver->name, dev_name(dev));
dev_set_drvdata(dev, v4l2_dev);
return 0;
}