]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "pinctrl: single: support gpio request and free"
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 18 Jan 2013 07:31:05 +0000 (15:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 22 Jan 2013 12:48:07 +0000 (13:48 +0100)
commit0d651beafbc556d43d1d0cf186522c50caa6a1cb
tree0ee4142b12c4b353f4be26f5e566972494318f2e
parent966a48842c538283cbf8f3c074aeaa12939dc918
Revert "pinctrl: single: support gpio request and free"

This reverts commit c2303fac80bc2e8a914083e719d4fc1f8d32121c.

Conflicts:
drivers/pinctrl/pinctrl-single.c

ERROR: "__aeabi_uldivmod" [drivers/pinctrl/pinctrl-single.ko]
undefined!]

On Fri, Jan 11, 2013 at 4:00 PM, Russell King wrote:

> The above error happens in builds including pinctrl-single - the
> reason
> is this, where resource_size_t may be 64-bit.
>
>                 gpio->range.pin_base = (r.start - pcs->res->start) /
>                 mux_bytes;
>                 gpio->range.npins = (r.end - r.start) / mux_bytes + 1;

The reason of not fixing this issue and reverting the patch instead is
this patch can't handle another case. It's not easy to handle multiple
gpios sharing one pin register. So this gpio range feature will be
implemented by other patches.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-single.c