Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Guennadi Liakhovetski and committed by
Mauro Carvalho Chehab
52d268a3 c6b65ab7

+5 -1
+2 -1
drivers/media/video/soc_camera.c
··· 1107 1107 return ret; 1108 1108 } 1109 1109 1110 - static struct bus_type soc_camera_bus_type = { 1110 + struct bus_type soc_camera_bus_type = { 1111 1111 .name = "soc-camera", 1112 1112 .probe = soc_camera_probe, 1113 1113 .remove = soc_camera_remove, 1114 1114 .suspend = soc_camera_suspend, 1115 1115 .resume = soc_camera_resume, 1116 1116 }; 1117 + EXPORT_SYMBOL_GPL(soc_camera_bus_type); 1117 1118 1118 1119 static struct device_driver ic_drv = { 1119 1120 .name = "camera",
+3
include/media/soc_camera.h
··· 12 12 #ifndef SOC_CAMERA_H 13 13 #define SOC_CAMERA_H 14 14 15 + #include <linux/device.h> 15 16 #include <linux/mutex.h> 16 17 #include <linux/pm.h> 17 18 #include <linux/videodev2.h> 18 19 #include <media/videobuf-core.h> 19 20 #include <media/v4l2-device.h> 21 + 22 + extern struct bus_type soc_camera_bus_type; 20 23 21 24 struct soc_camera_device { 22 25 struct list_head list;