Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296025
b: refs/heads/master
c: bac5932
h: refs/heads/master
i:
  296023: 85ec7de
v: v3
  • Loading branch information
Richard Zhao authored and Sascha Hauer committed Feb 1, 2012
1 parent 528cceb commit 5da5163
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: bcab50102c203927b66431b4467867bb5e104274
refs/heads/master: bac59328c8a6c7686cadb57bf2a37cf35c07deb0
8 changes: 4 additions & 4 deletions trunk/arch/arm/plat-mxc/audmux-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ static ssize_t audmux_read_file(struct file *file, char __user *user_buf,
return -ENOMEM;

if (audmux_clk)
clk_enable(audmux_clk);
clk_prepare_enable(audmux_clk);

ptcr = readl(audmux_base + MXC_AUDMUX_V2_PTCR(port));
pdcr = readl(audmux_base + MXC_AUDMUX_V2_PDCR(port));

if (audmux_clk)
clk_disable(audmux_clk);
clk_disable_unprepare(audmux_clk);

ret = snprintf(buf, PAGE_SIZE, "PDCR: %08x\nPTCR: %08x\n",
pdcr, ptcr);
Expand Down Expand Up @@ -172,13 +172,13 @@ int mxc_audmux_v2_configure_port(unsigned int port, unsigned int ptcr,
return -ENOSYS;

if (audmux_clk)
clk_enable(audmux_clk);
clk_prepare_enable(audmux_clk);

writel(ptcr, audmux_base + MXC_AUDMUX_V2_PTCR(port));
writel(pdcr, audmux_base + MXC_AUDMUX_V2_PDCR(port));

if (audmux_clk)
clk_disable(audmux_clk);
clk_disable_unprepare(audmux_clk);

return 0;
}
Expand Down

0 comments on commit 5da5163

Please sign in to comment.