Axel Lin
fa4007ca06
gpio: mpc8xxx: Fixup setting gpio direction output
...
For devtype with specific gpio_dir_out implementation, current code is
wrong because below code sets both gc->direction_output and
mpc8xxx_gc->direction_output to the same function.
gc->direction_output = devtype->gpio_dir_out ?: gc->direction_output;
mpc8xxx_gc->direction_output = gc->direction_output;
Set mpc8xxx_gc->direction_output = gc->direction_output first to fix it.
This way mpc8xxx_gc->direction_output actually calls the standard
bgpio_dir_out() to update register.
Fixes: commit 42178e2a1e ("drivers/gpio: Switch gpio-mpc8xxx to use gpio-generic")
Signed-off-by: Axel Lin <axel.lin@ingics.com >
Signed-off-by: Linus Walleij <linus.walleij@linaro.org >
2016-03-09 10:41:23 +07:00
..
2016-02-25 10:04:25 +01:00
2016-01-05 11:21:01 +01:00
2016-02-23 20:19:42 +05:30
2016-02-16 00:19:51 +01:00
2016-02-16 00:19:51 +01:00
2016-02-16 00:19:52 +01:00
2016-02-23 20:19:46 +05:30
2016-02-23 20:34:06 +05:30
2016-02-23 20:34:24 +05:30
2016-01-27 10:50:22 +01:00
2016-02-16 00:19:52 +01:00
2016-01-05 11:21:02 +01:00
2016-02-23 20:34:29 +05:30
2016-02-25 15:20:43 +01:00
2016-02-23 20:35:13 +05:30
2016-02-25 15:20:43 +01:00
2016-01-05 11:21:03 +01:00
2016-02-23 20:35:27 +05:30
2016-02-23 20:35:27 +05:30
2016-02-23 20:35:28 +05:30
2016-02-23 20:35:29 +05:30
2016-02-23 20:35:29 +05:30
2016-02-22 13:47:49 +01:00
2016-02-23 20:35:30 +05:30
2016-01-05 11:21:05 +01:00
2016-02-23 20:35:30 +05:30
2016-02-23 20:35:31 +05:30
2016-02-23 20:35:31 +05:30
2016-02-23 20:35:32 +05:30
2016-02-16 00:19:53 +01:00
2016-01-05 11:21:05 +01:00
2016-02-23 20:35:32 +05:30
2016-01-05 11:21:06 +01:00
2016-02-23 20:35:33 +05:30
2016-02-23 20:35:34 +05:30
2016-02-19 00:20:30 +01:00
2016-01-05 11:21:20 +01:00
2016-03-09 09:17:55 +07:00
2016-01-05 11:21:06 +01:00
2016-02-23 20:35:35 +05:30
2016-02-23 20:35:35 +05:30
2016-01-05 11:21:07 +01:00
2016-01-05 11:21:07 +01:00
2016-01-05 11:21:07 +01:00
2016-02-23 20:35:36 +05:30
2016-01-05 11:21:07 +01:00
2016-03-09 09:50:37 +07:00
2016-03-09 09:44:52 +07:00
2016-01-05 11:21:08 +01:00
2016-01-13 10:21:06 +01:00
2016-03-08 14:41:41 +07:00
2016-03-09 10:41:23 +07:00
2016-02-16 00:20:03 +01:00
2016-01-05 11:21:09 +01:00
2016-02-23 20:35:37 +05:30
2016-02-23 20:35:37 +05:30
2016-02-23 20:35:38 +05:30
2016-01-05 11:21:10 +01:00
2016-02-23 20:35:40 +05:30
2016-02-23 20:35:38 +05:30
2016-02-23 20:35:39 +05:30
2016-01-05 15:46:34 +01:00
2016-02-25 15:20:46 +01:00
2016-01-05 11:21:11 +01:00
2016-01-05 11:21:12 +01:00
2016-02-23 20:35:40 +05:30
2016-02-25 10:06:01 +01:00
2016-02-23 20:35:41 +05:30
2016-01-05 11:21:20 +01:00
2016-02-16 00:19:53 +01:00
2016-02-23 20:35:41 +05:30
2016-02-23 20:35:42 +05:30
2016-02-23 20:35:42 +05:30
2016-01-05 11:21:14 +01:00
2016-02-23 20:35:43 +05:30
2016-02-23 20:35:43 +05:30
2016-02-23 20:35:44 +05:30
2016-02-23 20:35:44 +05:30
2016-02-23 20:35:45 +05:30
2016-02-23 20:35:46 +05:30
2016-03-08 15:56:33 +07:00
2016-02-16 15:56:51 +01:00
2016-02-23 20:35:47 +05:30
2016-02-19 09:22:41 +01:00
2016-02-23 20:35:47 +05:30
2016-02-23 20:35:48 +05:30
2016-02-25 15:20:44 +01:00
2016-02-23 20:35:49 +05:30
2016-01-05 11:21:16 +01:00
2016-02-23 20:35:50 +05:30
2016-01-05 11:21:16 +01:00
2016-01-05 11:21:16 +01:00
2016-02-23 20:35:50 +05:30
2016-01-05 11:21:17 +01:00
2016-02-23 20:35:51 +05:30
2016-01-05 11:21:20 +01:00
2016-02-23 20:35:51 +05:30
2016-02-23 20:35:52 +05:30
2016-02-23 20:35:52 +05:30
2016-02-23 20:35:53 +05:30
2016-02-16 00:19:54 +01:00
2016-02-25 15:20:45 +01:00
2016-02-23 20:35:54 +05:30
2016-01-07 10:06:56 +01:00
2016-01-05 11:21:19 +01:00
2016-01-05 11:21:20 +01:00
2016-01-05 11:21:19 +01:00
2016-01-05 11:21:19 +01:00
2016-01-05 11:21:20 +01:00
2016-02-16 00:20:02 +01:00
2016-02-25 16:08:45 +01:00
2016-03-08 14:41:41 +07:00
2016-02-19 09:48:41 +01:00
2016-03-09 09:44:52 +07:00
2016-03-09 09:44:52 +07:00