diff options
Diffstat (limited to 'drivers/media/video/s5p-mfc/s5p_mfc.c')
-rw-r--r-- | drivers/media/video/s5p-mfc/s5p_mfc.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc.c b/drivers/media/video/s5p-mfc/s5p_mfc.c index 7dc7eab58b3..8be8b54eb74 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc.c | |||
@@ -202,7 +202,7 @@ static void s5p_mfc_handle_frame_copy_time(struct s5p_mfc_ctx *ctx) | |||
202 | appropraite flags */ | 202 | appropraite flags */ |
203 | src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); | 203 | src_buf = list_entry(ctx->src_queue.next, struct s5p_mfc_buf, list); |
204 | list_for_each_entry(dst_buf, &ctx->dst_queue, list) { | 204 | list_for_each_entry(dst_buf, &ctx->dst_queue, list) { |
205 | if (vb2_dma_contig_plane_paddr(dst_buf->b, 0) == dec_y_addr) { | 205 | if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dec_y_addr) { |
206 | memcpy(&dst_buf->b->v4l2_buf.timecode, | 206 | memcpy(&dst_buf->b->v4l2_buf.timecode, |
207 | &src_buf->b->v4l2_buf.timecode, | 207 | &src_buf->b->v4l2_buf.timecode, |
208 | sizeof(struct v4l2_timecode)); | 208 | sizeof(struct v4l2_timecode)); |
@@ -248,7 +248,7 @@ static void s5p_mfc_handle_frame_new(struct s5p_mfc_ctx *ctx, unsigned int err) | |||
248 | * check which videobuf does it correspond to */ | 248 | * check which videobuf does it correspond to */ |
249 | list_for_each_entry(dst_buf, &ctx->dst_queue, list) { | 249 | list_for_each_entry(dst_buf, &ctx->dst_queue, list) { |
250 | /* Check if this is the buffer we're looking for */ | 250 | /* Check if this is the buffer we're looking for */ |
251 | if (vb2_dma_contig_plane_paddr(dst_buf->b, 0) == dspl_y_addr) { | 251 | if (vb2_dma_contig_plane_dma_addr(dst_buf->b, 0) == dspl_y_addr) { |
252 | list_del(&dst_buf->list); | 252 | list_del(&dst_buf->list); |
253 | ctx->dst_queue_cnt--; | 253 | ctx->dst_queue_cnt--; |
254 | dst_buf->b->v4l2_buf.sequence = ctx->sequence; | 254 | dst_buf->b->v4l2_buf.sequence = ctx->sequence; |
@@ -940,9 +940,8 @@ static int match_child(struct device *dev, void *data) | |||
940 | return !strcmp(dev_name(dev), (char *)data); | 940 | return !strcmp(dev_name(dev), (char *)data); |
941 | } | 941 | } |
942 | 942 | ||
943 | |||
944 | /* MFC probe function */ | 943 | /* MFC probe function */ |
945 | static int __devinit s5p_mfc_probe(struct platform_device *pdev) | 944 | static int s5p_mfc_probe(struct platform_device *pdev) |
946 | { | 945 | { |
947 | struct s5p_mfc_dev *dev; | 946 | struct s5p_mfc_dev *dev; |
948 | struct video_device *vfd; | 947 | struct video_device *vfd; |
@@ -1236,7 +1235,7 @@ static const struct dev_pm_ops s5p_mfc_pm_ops = { | |||
1236 | NULL) | 1235 | NULL) |
1237 | }; | 1236 | }; |
1238 | 1237 | ||
1239 | static struct platform_driver s5p_mfc_pdrv = { | 1238 | static struct platform_driver s5p_mfc_driver = { |
1240 | .probe = s5p_mfc_probe, | 1239 | .probe = s5p_mfc_probe, |
1241 | .remove = __devexit_p(s5p_mfc_remove), | 1240 | .remove = __devexit_p(s5p_mfc_remove), |
1242 | .driver = { | 1241 | .driver = { |
@@ -1254,15 +1253,15 @@ static int __init s5p_mfc_init(void) | |||
1254 | int ret; | 1253 | int ret; |
1255 | 1254 | ||
1256 | pr_info("%s", banner); | 1255 | pr_info("%s", banner); |
1257 | ret = platform_driver_register(&s5p_mfc_pdrv); | 1256 | ret = platform_driver_register(&s5p_mfc_driver); |
1258 | if (ret) | 1257 | if (ret) |
1259 | pr_err("Platform device registration failed.\n"); | 1258 | pr_err("Platform device registration failed.\n"); |
1260 | return ret; | 1259 | return ret; |
1261 | } | 1260 | } |
1262 | 1261 | ||
1263 | static void __devexit s5p_mfc_exit(void) | 1262 | static void __exit s5p_mfc_exit(void) |
1264 | { | 1263 | { |
1265 | platform_driver_unregister(&s5p_mfc_pdrv); | 1264 | platform_driver_unregister(&s5p_mfc_driver); |
1266 | } | 1265 | } |
1267 | 1266 | ||
1268 | module_init(s5p_mfc_init); | 1267 | module_init(s5p_mfc_init); |