aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>2010-07-26 10:37:13 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-08-02 15:43:38 -0400
commit52d268a36246ee4156cc719036522616bb4d73fa (patch)
treed6d21667b2f3938278d1dcd91bbce70fd1fd0158
parentc6b65ab78bebf5ceaa8de53d8a9c4f5e34e45e57 (diff)
V4L/DVB: V4L2: soc-camera: export soc-camera bus type for notifications
Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
-rw-r--r--drivers/media/video/soc_camera.c3
-rw-r--r--include/media/soc_camera.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/video/soc_camera.c b/drivers/media/video/soc_camera.c
index 475757bfd7ba..f2032939fd4b 100644
--- a/drivers/media/video/soc_camera.c
+++ b/drivers/media/video/soc_camera.c
@@ -1107,13 +1107,14 @@ static int soc_camera_resume(struct device *dev)
1107 return ret; 1107 return ret;
1108} 1108}
1109 1109
1110static struct bus_type soc_camera_bus_type = { 1110struct bus_type soc_camera_bus_type = {
1111 .name = "soc-camera", 1111 .name = "soc-camera",
1112 .probe = soc_camera_probe, 1112 .probe = soc_camera_probe,
1113 .remove = soc_camera_remove, 1113 .remove = soc_camera_remove,
1114 .suspend = soc_camera_suspend, 1114 .suspend = soc_camera_suspend,
1115 .resume = soc_camera_resume, 1115 .resume = soc_camera_resume,
1116}; 1116};
1117EXPORT_SYMBOL_GPL(soc_camera_bus_type);
1117 1118
1118static struct device_driver ic_drv = { 1119static struct device_driver ic_drv = {
1119 .name = "camera", 1120 .name = "camera",
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h
index b8289c2f609b..2ce957301f77 100644
--- a/include/media/soc_camera.h
+++ b/include/media/soc_camera.h
@@ -12,12 +12,15 @@
12#ifndef SOC_CAMERA_H 12#ifndef SOC_CAMERA_H
13#define SOC_CAMERA_H 13#define SOC_CAMERA_H
14 14
15#include <linux/device.h>
15#include <linux/mutex.h> 16#include <linux/mutex.h>
16#include <linux/pm.h> 17#include <linux/pm.h>
17#include <linux/videodev2.h> 18#include <linux/videodev2.h>
18#include <media/videobuf-core.h> 19#include <media/videobuf-core.h>
19#include <media/v4l2-device.h> 20#include <media/v4l2-device.h>
20 21
22extern struct bus_type soc_camera_bus_type;
23
21struct soc_camera_device { 24struct soc_camera_device {
22 struct list_head list; 25 struct list_head list;
23 struct device dev; 26 struct device dev;