diff options
author | Jean-Francois Moine <moinejf@free.fr> | 2008-11-07 08:46:07 +0100 |
---|---|---|
committer | Jean-Francois Moine <moinejf@free.fr> | 2008-11-07 08:46:07 +0100 |
commit | 8bf5ff37ec43c9afcf8a352754624f6462c06a02 (patch) | |
tree | c407189bc8a36c3b5d452a13692037949858e7f2 /linux/drivers/media/video/soc_camera.c | |
parent | 4c6dca7b19e1055dd0d4aaa8123c9a832f117202 (diff) | |
parent | 17490135b2a7a46fc7fb67d64dbaeb1301ea169d (diff) | |
download | mediapointer-dvb-s2-8bf5ff37ec43c9afcf8a352754624f6462c06a02.tar.gz mediapointer-dvb-s2-8bf5ff37ec43c9afcf8a352754624f6462c06a02.tar.bz2 |
merge: v4l-dvb
Diffstat (limited to 'linux/drivers/media/video/soc_camera.c')
-rw-r--r-- | linux/drivers/media/video/soc_camera.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/video/soc_camera.c b/linux/drivers/media/video/soc_camera.c index 66ebe5956..7a46697c4 100644 --- a/linux/drivers/media/video/soc_camera.c +++ b/linux/drivers/media/video/soc_camera.c @@ -29,6 +29,7 @@ #include <media/v4l2-dev.h> #include <media/videobuf-core.h> #include <media/soc_camera.h> +#include "compat.h" static LIST_HEAD(hosts); static LIST_HEAD(devices); @@ -783,7 +784,7 @@ int soc_camera_host_register(struct soc_camera_host *ici) return -EINVAL; /* Number might be equal to the platform device ID */ - sprintf(ici->dev.bus_id, "camera_host%d", ici->nr); + dev_set_name(&ici->dev, "camera_host%d", ici->nr); mutex_lock(&list_lock); list_for_each_entry(ix, &hosts, list) { @@ -867,8 +868,7 @@ int soc_camera_device_register(struct soc_camera_device *icd) icd->devnum = num; icd->dev.bus = &soc_camera_bus_type; - snprintf(icd->dev.bus_id, sizeof(icd->dev.bus_id), - "%u-%u", icd->iface, icd->devnum); + dev_set_name(&icd->dev, "%u-%u", icd->iface, icd->devnum); icd->dev.release = dummy_release; |