Commit 52d268a3 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Mauro Carvalho Chehab

V4L/DVB: V4L2: soc-camera: export soc-camera bus type for notifications

Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent c6b65ab7
...@@ -1107,13 +1107,14 @@ static int soc_camera_resume(struct device *dev) ...@@ -1107,13 +1107,14 @@ static int soc_camera_resume(struct device *dev)
return ret; return ret;
} }
static struct bus_type soc_camera_bus_type = { struct bus_type soc_camera_bus_type = {
.name = "soc-camera", .name = "soc-camera",
.probe = soc_camera_probe, .probe = soc_camera_probe,
.remove = soc_camera_remove, .remove = soc_camera_remove,
.suspend = soc_camera_suspend, .suspend = soc_camera_suspend,
.resume = soc_camera_resume, .resume = soc_camera_resume,
}; };
EXPORT_SYMBOL_GPL(soc_camera_bus_type);
static struct device_driver ic_drv = { static struct device_driver ic_drv = {
.name = "camera", .name = "camera",
......
...@@ -12,12 +12,15 @@ ...@@ -12,12 +12,15 @@
#ifndef SOC_CAMERA_H #ifndef SOC_CAMERA_H
#define SOC_CAMERA_H #define SOC_CAMERA_H
#include <linux/device.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/pm.h> #include <linux/pm.h>
#include <linux/videodev2.h> #include <linux/videodev2.h>
#include <media/videobuf-core.h> #include <media/videobuf-core.h>
#include <media/v4l2-device.h> #include <media/v4l2-device.h>
extern struct bus_type soc_camera_bus_type;
struct soc_camera_device { struct soc_camera_device {
struct list_head list; struct list_head list;
struct device dev; struct device dev;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment