Skip to content

Commit d33b290

Browse files
lyakhMauro Carvalho Chehab
authored andcommitted
[media] V4L: soc-camera: un-export the soc-camera bus
The soc-camera bus is now completely local again. Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
1 parent 6b526fe commit d33b290

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

drivers/media/video/soc_camera.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1207,12 +1207,11 @@ static int soc_camera_remove(struct device *dev)
12071207
return 0;
12081208
}
12091209

1210-
struct bus_type soc_camera_bus_type = {
1210+
static struct bus_type soc_camera_bus_type = {
12111211
.name= "soc-camera",
12121212
.probe= soc_camera_probe,
12131213
.remove= soc_camera_remove,
12141214
};
1215-
EXPORT_SYMBOL_GPL(soc_camera_bus_type);
12161215

12171216
static struct device_driver ic_drv = {
12181217
.name= "camera",

include/media/soc_camera.h

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,10 @@
2020
#include <media/videobuf2-core.h>
2121
#include <media/v4l2-device.h>
2222

23-
extern struct bus_type soc_camera_bus_type;
24-
2523
struct file;
2624

2725
struct soc_camera_device {
28-
struct list_head list;
26+
struct list_head list;/* list of all registered devices */
2927
struct device dev;
3028
struct device *pdev;/* Platform device */
3129
s32 user_width;
@@ -126,8 +124,8 @@ struct soc_camera_link {
126124
int num_regulators;
127125

128126
/*
129-
* For non-I2C devices platform platform has to provide methods to
130-
* add a device to the system and to remove
127+
* For non-I2C devices platform has to provide methods to add a device
128+
* to the system and to remove it
131129
*/
132130
int (*add_device)(struct soc_camera_link *, struct device *);
133131
void (*del_device)(struct soc_camera_link *);

0 commit comments

Comments
 (0)