aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-fimc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/video/s5p-fimc')
-rw-r--r--drivers/media/video/s5p-fimc/fimc-core.h3
-rw-r--r--drivers/media/video/s5p-fimc/fimc-reg.c6
2 files changed, 3 insertions, 6 deletions
diff --git a/drivers/media/video/s5p-fimc/fimc-core.h b/drivers/media/video/s5p-fimc/fimc-core.h
index 95b27ae5cf27..808ccc621846 100644
--- a/drivers/media/video/s5p-fimc/fimc-core.h
+++ b/drivers/media/video/s5p-fimc/fimc-core.h
@@ -27,9 +27,6 @@
27#include <media/v4l2-mediabus.h> 27#include <media/v4l2-mediabus.h>
28#include <media/s5p_fimc.h> 28#include <media/s5p_fimc.h>
29 29
30#define err(fmt, args...) \
31 printk(KERN_ERR "%s:%d: " fmt "\n", __func__, __LINE__, ##args)
32
33#define dbg(fmt, args...) \ 30#define dbg(fmt, args...) \
34 pr_debug("%s:%d: " fmt "\n", __func__, __LINE__, ##args) 31 pr_debug("%s:%d: " fmt "\n", __func__, __LINE__, ##args)
35 32
diff --git a/drivers/media/video/s5p-fimc/fimc-reg.c b/drivers/media/video/s5p-fimc/fimc-reg.c
index 1fc4ce8446f5..74a2fba2c543 100644
--- a/drivers/media/video/s5p-fimc/fimc-reg.c
+++ b/drivers/media/video/s5p-fimc/fimc-reg.c
@@ -683,8 +683,8 @@ int fimc_hw_set_camera_type(struct fimc_dev *fimc,
683 cfg |= FIMC_REG_CIGCTRL_CAM_JPEG; 683 cfg |= FIMC_REG_CIGCTRL_CAM_JPEG;
684 break; 684 break;
685 default: 685 default:
686 v4l2_err(fimc->vid_cap.vfd, 686 v4l2_err(vid_cap->vfd,
687 "Not supported camera pixel format: %d", 687 "Not supported camera pixel format: %#x\n",
688 vid_cap->mf.code); 688 vid_cap->mf.code);
689 return -EINVAL; 689 return -EINVAL;
690 } 690 }
@@ -699,7 +699,7 @@ int fimc_hw_set_camera_type(struct fimc_dev *fimc,
699 } else if (cam->bus_type == FIMC_LCD_WB) { 699 } else if (cam->bus_type == FIMC_LCD_WB) {
700 cfg |= FIMC_REG_CIGCTRL_CAMIF_SELWB; 700 cfg |= FIMC_REG_CIGCTRL_CAMIF_SELWB;
701 } else { 701 } else {
702 err("invalid camera bus type selected\n"); 702 v4l2_err(vid_cap->vfd, "Invalid camera bus type selected\n");
703 return -EINVAL; 703 return -EINVAL;
704 } 704 }
705 writel(cfg, fimc->regs + FIMC_REG_CIGCTRL); 705 writel(cfg, fimc->regs + FIMC_REG_CIGCTRL);