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-01-22 17:02:18 -08:00
2016-02-16 00:20:03 +01:00
2015-12-29 15:32:24 -05:00
2016-01-22 18:04:28 -05:00
2016-01-17 12:32:01 -08:00
2016-01-24 12:34:13 -08:00
2016-01-06 16:37:14 +01:00
2016-01-20 18:42:30 -08:00
2016-01-06 08:25:24 -05:00
2016-01-23 12:24:56 -08:00
2016-01-20 18:16:29 -08:00
2016-01-20 17:55:20 -08:00
2016-01-04 21:46:45 -05:00
2016-01-15 13:18:47 -08:00
2016-01-20 19:06:49 -08:00
2016-01-22 11:58:43 -08:00
2016-01-13 17:30:33 +09:00
2016-01-20 10:15:21 -08:00
2016-01-01 18:31:34 +01:00
2016-01-20 17:09:18 -08:00
2016-03-09 10:41:23 +07:00
2016-01-22 17:02:18 -08:00
2016-01-20 17:30:20 -08:00
2016-01-07 16:07:54 +01:00
2016-01-13 10:23:36 -08:00
2016-01-17 12:15:38 -08:00
2015-12-21 13:31:31 -08:00
2016-01-14 11:25:37 -08:00
2016-01-18 14:12:33 -05:00
2016-01-21 12:32:08 -08:00
2016-01-23 18:45:06 -08:00
2016-01-22 17:20:30 -08:00
2016-01-19 09:35:06 -08:00
2016-01-24 12:50:56 -08:00
2016-01-11 23:55:43 -05:00
2016-01-17 12:32:01 -08:00
2016-01-12 12:17:28 +01:00
2016-01-12 08:21:18 -07:00
2016-01-21 18:19:38 -08:00
2016-01-20 17:09:18 -08:00
2016-01-20 18:42:30 -08:00
2016-01-20 17:09:18 -08:00
2016-02-16 00:20:03 +01:00
2016-01-21 12:32:08 -08:00
2016-01-22 12:04:21 -08:00
2016-02-16 00:20:03 +01:00
2016-01-23 18:45:06 -08:00
2015-12-29 19:06:23 +01:00
2016-01-21 19:53:10 -05:00
2016-01-15 17:56:32 -08:00
2016-01-21 19:58:02 -08:00
2016-01-14 11:13:28 -08:00
2016-01-22 18:04:28 -05:00
2016-01-20 17:09:18 -08:00
2016-01-03 16:32:59 -08:00
2016-01-21 11:52:16 -08:00
2016-02-16 00:20:03 +01:00
2015-12-26 17:01:18 -08:00
2016-02-19 09:51:41 +01:00
2016-01-24 10:15:01 -08:00
2016-01-04 22:12:42 +01:00
2016-01-14 01:03:18 +01:00
2016-01-12 01:12:40 +01:00
2016-01-21 15:04:59 +01:00
2016-01-20 17:09:18 -08:00
2016-01-15 12:14:47 -08:00
2016-01-12 20:47:06 +02:00
2016-01-12 20:47:06 +02:00
2016-01-18 12:10:45 -08:00
2016-01-18 16:44:24 -08:00
2016-01-04 10:26:58 -05:00
2016-01-23 18:45:06 -08:00
2016-01-25 18:02:26 +01:00
2016-01-15 13:18:47 -08:00
2016-01-23 18:45:06 -08:00
2016-01-21 19:58:02 -08:00
2016-01-24 12:43:06 -08:00
2016-01-20 18:42:30 -08:00
2016-02-16 00:20:03 +01:00
2016-01-04 12:55:44 -07:00
2016-02-16 00:20:03 +01:00
2016-01-12 20:47:06 +02:00
2016-01-11 22:48:05 +01:00
2016-01-18 16:44:24 -08:00