diff options
Diffstat (limited to 'drivers/media/video/cpia.c')
-rw-r--r-- | drivers/media/video/cpia.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/video/cpia.c b/drivers/media/video/cpia.c index 1798b779a25a..16c094f77852 100644 --- a/drivers/media/video/cpia.c +++ b/drivers/media/video/cpia.c | |||
@@ -1347,7 +1347,7 @@ static void create_proc_cpia_cam(struct cam_data *cam) | |||
1347 | if (!cpia_proc_root || !cam) | 1347 | if (!cpia_proc_root || !cam) |
1348 | return; | 1348 | return; |
1349 | 1349 | ||
1350 | snprintf(name, sizeof(name), "video%d", cam->vdev.minor); | 1350 | snprintf(name, sizeof(name), "video%d", cam->vdev.num); |
1351 | 1351 | ||
1352 | ent = create_proc_entry(name, S_IFREG|S_IRUGO|S_IWUSR, cpia_proc_root); | 1352 | ent = create_proc_entry(name, S_IFREG|S_IRUGO|S_IWUSR, cpia_proc_root); |
1353 | if (!ent) | 1353 | if (!ent) |
@@ -1372,7 +1372,7 @@ static void destroy_proc_cpia_cam(struct cam_data *cam) | |||
1372 | if (!cam || !cam->proc_entry) | 1372 | if (!cam || !cam->proc_entry) |
1373 | return; | 1373 | return; |
1374 | 1374 | ||
1375 | snprintf(name, sizeof(name), "video%d", cam->vdev.minor); | 1375 | snprintf(name, sizeof(name), "video%d", cam->vdev.num); |
1376 | remove_proc_entry(name, cpia_proc_root); | 1376 | remove_proc_entry(name, cpia_proc_root); |
1377 | cam->proc_entry = NULL; | 1377 | cam->proc_entry = NULL; |
1378 | } | 1378 | } |
@@ -4005,7 +4005,7 @@ void cpia_unregister_camera(struct cam_data *cam) | |||
4005 | } | 4005 | } |
4006 | 4006 | ||
4007 | #ifdef CONFIG_PROC_FS | 4007 | #ifdef CONFIG_PROC_FS |
4008 | DBG("destroying /proc/cpia/video%d\n", cam->vdev.minor); | 4008 | DBG("destroying /proc/cpia/video%d\n", cam->vdev.num); |
4009 | destroy_proc_cpia_cam(cam); | 4009 | destroy_proc_cpia_cam(cam); |
4010 | #endif | 4010 | #endif |
4011 | if (!cam->open_count) { | 4011 | if (!cam->open_count) { |