Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 355345
b: refs/heads/master
c: a99ebec
h: refs/heads/master
i:
  355343: 1499747
v: v3
  • Loading branch information
Laurent Pinchart authored and Simon Horman committed Jan 25, 2013
1 parent 9d6cb1c commit b582755
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: 4a2e0d18f95e1ec2b264f66e7cedec7f3dc54b44
refs/heads/master: a99ebec16c0586ec0838558fd1a050801037ebc9
4 changes: 2 additions & 2 deletions trunk/drivers/sh/pfc/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ static void sh_gpio_set_value(struct sh_pfc *pfc, unsigned gpio, int value)
struct pinmux_data_reg *dr = NULL;
int bit = 0;

if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0)
if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0)
BUG();
else
sh_pfc_write_bit(dr, bit, value);
Expand All @@ -63,7 +63,7 @@ static int sh_gpio_get_value(struct sh_pfc *pfc, unsigned gpio)
struct pinmux_data_reg *dr = NULL;
int bit = 0;

if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0)
if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0)
return -EINVAL;

return sh_pfc_read_bit(dr, bit);
Expand Down

0 comments on commit b582755

Please sign in to comment.