diff options
Diffstat (limited to 'include/media/soc_camera.h')
-rw-r--r-- | include/media/soc_camera.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/media/soc_camera.h b/include/media/soc_camera.h index 396c32550e04..bef5e81d6935 100644 --- a/include/media/soc_camera.h +++ b/include/media/soc_camera.h | |||
@@ -60,7 +60,7 @@ struct soc_camera_file { | |||
60 | 60 | ||
61 | struct soc_camera_host { | 61 | struct soc_camera_host { |
62 | struct list_head list; | 62 | struct list_head list; |
63 | struct device dev; | 63 | struct device *dev; |
64 | unsigned char nr; /* Host number */ | 64 | unsigned char nr; /* Host number */ |
65 | void *priv; | 65 | void *priv; |
66 | const char *drv_name; | 66 | const char *drv_name; |
@@ -117,7 +117,7 @@ static inline struct soc_camera_device *to_soc_camera_dev(struct device *dev) | |||
117 | 117 | ||
118 | static inline struct soc_camera_host *to_soc_camera_host(struct device *dev) | 118 | static inline struct soc_camera_host *to_soc_camera_host(struct device *dev) |
119 | { | 119 | { |
120 | return container_of(dev, struct soc_camera_host, dev); | 120 | return dev_get_drvdata(dev); |
121 | } | 121 | } |
122 | 122 | ||
123 | extern int soc_camera_host_register(struct soc_camera_host *ici); | 123 | extern int soc_camera_host_register(struct soc_camera_host *ici); |