summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/v4l2-device.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/video/v4l2-device.c')
-rw-r--r--linux/drivers/media/video/v4l2-device.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/linux/drivers/media/video/v4l2-device.c b/linux/drivers/media/video/v4l2-device.c
index cf9d4c7f5..e84925976 100644
--- a/linux/drivers/media/video/v4l2-device.c
+++ b/linux/drivers/media/video/v4l2-device.c
@@ -23,6 +23,7 @@
#include <linux/i2c.h>
#include <linux/videodev2.h>
#include <media/v4l2-device.h>
+#include "compat.h"
int v4l2_device_register(struct device *dev, struct v4l2_device *v4l2_dev)
{
@@ -34,7 +35,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;
}