Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 258976
b: refs/heads/master
c: ce1bb7a
h: refs/heads/master
v: v3
  • Loading branch information
WANG Cong authored and Linus Torvalds committed Jul 26, 2011
1 parent 63a7284 commit f9accad
Show file tree
Hide file tree
Showing 2 changed files with 7 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: b7de110044b4e26adcb7b278d14da93133692ed7
refs/heads/master: ce1bb7afc5648056cf66896c4aebc0062bb12f79
10 changes: 6 additions & 4 deletions trunk/arch/cris/arch-v32/mach-a3/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ crisv32_pinmux_alloc_fixed(enum fixed_function function)
int ret = -EINVAL;
char saved[sizeof pins];
unsigned long flags;
reg_pinmux_rw_hwprot hwprot;
reg_clkgen_rw_clk_ctrl clk_ctrl;

spin_lock_irqsave(&pinmux_lock, flags);

Expand All @@ -93,9 +95,8 @@ crisv32_pinmux_alloc_fixed(enum fixed_function function)

crisv32_pinmux_init(); /* must be done before we read rw_hwprot */

reg_pinmux_rw_hwprot hwprot = REG_RD(pinmux, regi_pinmux, rw_hwprot);
reg_clkgen_rw_clk_ctrl clk_ctrl = REG_RD(clkgen, regi_clkgen,
rw_clk_ctrl);
hwprot = REG_RD(pinmux, regi_pinmux, rw_hwprot);
clk_ctrl = REG_RD(clkgen, regi_clkgen, rw_clk_ctrl);

switch (function) {
case pinmux_eth:
Expand Down Expand Up @@ -262,6 +263,7 @@ crisv32_pinmux_dealloc_fixed(enum fixed_function function)
int ret = -EINVAL;
char saved[sizeof pins];
unsigned long flags;
reg_pinmux_rw_hwprot hwprot;

spin_lock_irqsave(&pinmux_lock, flags);

Expand All @@ -270,7 +272,7 @@ crisv32_pinmux_dealloc_fixed(enum fixed_function function)

crisv32_pinmux_init(); /* must be done before we read rw_hwprot */

reg_pinmux_rw_hwprot hwprot = REG_RD(pinmux, regi_pinmux, rw_hwprot);
hwprot = REG_RD(pinmux, regi_pinmux, rw_hwprot);

switch (function) {
case pinmux_eth:
Expand Down

0 comments on commit f9accad

Please sign in to comment.