Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 271775
b: refs/heads/master
c: ebdfea8
h: refs/heads/master
i:
  271773: 6a7e67f
  271771: d60b62e
  271767: f51fb7d
  271759: 8300c56
  271743: 02ff0f0
v: v3
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Sep 6, 2011
1 parent 457b069 commit 10e17de
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 96a857421a9d212696364d210bd85a2162e73966
refs/heads/master: ebdfea810ec21744840f647341a1e74b8c762586
12 changes: 2 additions & 10 deletions trunk/drivers/media/video/s5p-fimc/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#include "fimc-core.h"

static char *fimc_clocks[MAX_FIMC_CLOCKS] = {
"sclk_fimc", "fimc", "sclk_cam"
"sclk_fimc", "fimc"
};

static struct fimc_fmt fimc_formats[] = {
Expand Down Expand Up @@ -1636,7 +1636,6 @@ static int fimc_probe(struct platform_device *pdev)
struct samsung_fimc_driverdata *drv_data;
struct s5p_platform_fimc *pdata;
int ret = 0;
int cap_input_index = -1;

dev_dbg(&pdev->dev, "%s():\n", __func__);

Expand Down Expand Up @@ -1689,14 +1688,6 @@ static int fimc_probe(struct platform_device *pdev)
goto err_req_region;
}

fimc->num_clocks = MAX_FIMC_CLOCKS - 1;

/* Check if a video capture node needs to be registered. */
if (pdata && pdata->num_clients > 0) {
cap_input_index = 0;
fimc->num_clocks++;
}

res = platform_get_resource(pdev, IORESOURCE_IRQ, 0);
if (!res) {
dev_err(&pdev->dev, "failed to get IRQ resource\n");
Expand All @@ -1705,6 +1696,7 @@ static int fimc_probe(struct platform_device *pdev)
}
fimc->irq = res->start;

fimc->num_clocks = MAX_FIMC_CLOCKS;
ret = fimc_clk_get(fimc);
if (ret)
goto err_regs_unmap;
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/media/video/s5p-fimc/fimc-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

/* Time to wait for next frame VSYNC interrupt while stopping operation. */
#define FIMC_SHUTDOWN_TIMEOUT ((100*HZ)/1000)
#define MAX_FIMC_CLOCKS 3
#define MAX_FIMC_CLOCKS 2
#define MODULE_NAME "s5p-fimc"
#define FIMC_MAX_DEVS 4
#define FIMC_MAX_OUT_BUFS 4
Expand All @@ -46,7 +46,6 @@
enum {
CLK_BUS,
CLK_GATE,
CLK_CAM,
};

enum fimc_dev_flags {
Expand Down

0 comments on commit 10e17de

Please sign in to comment.