• Haojian Zhuang's avatar
    Revert "pinctrl: single: support gpio request and free" · 8b77b376
    Haojian Zhuang authored
    This reverts commit 2e8b2eab.
    
    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: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarHaojian Zhuang <haojian.zhuang@linaro.org>
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    8b77b376
pinctrl-single.c 23.7 KB