diff options
-rw-r--r-- | drivers/sh/pfc/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/sh/pfc/gpio.c b/drivers/sh/pfc/gpio.c index 37493e5fe2ee..c11c1bb97c71 100644 --- a/drivers/sh/pfc/gpio.c +++ b/drivers/sh/pfc/gpio.c | |||
@@ -52,7 +52,7 @@ static void sh_gpio_set_value(struct sh_pfc *pfc, unsigned gpio, int value) | |||
52 | struct pinmux_data_reg *dr = NULL; | 52 | struct pinmux_data_reg *dr = NULL; |
53 | int bit = 0; | 53 | int bit = 0; |
54 | 54 | ||
55 | if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) | 55 | if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) |
56 | BUG(); | 56 | BUG(); |
57 | else | 57 | else |
58 | sh_pfc_write_bit(dr, bit, value); | 58 | sh_pfc_write_bit(dr, bit, value); |
@@ -63,7 +63,7 @@ static int sh_gpio_get_value(struct sh_pfc *pfc, unsigned gpio) | |||
63 | struct pinmux_data_reg *dr = NULL; | 63 | struct pinmux_data_reg *dr = NULL; |
64 | int bit = 0; | 64 | int bit = 0; |
65 | 65 | ||
66 | if (!pfc || sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) | 66 | if (sh_pfc_get_data_reg(pfc, gpio, &dr, &bit) != 0) |
67 | return -EINVAL; | 67 | return -EINVAL; |
68 | 68 | ||
69 | return sh_pfc_read_bit(dr, bit); | 69 | return sh_pfc_read_bit(dr, bit); |