gpio: pl061: hook request if gpio-ranges avaiable
authorYunlei He <heyunlei@huawei.com>
Tue, 2 Dec 2014 04:32:59 +0000 (12:32 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 3 Dec 2014 13:44:23 +0000 (14:44 +0100)
commit27f9fec5cf248692b373c31905c65326952a8e63
tree509e1d01c482249fb9fe7844a5e587490519daef
parenta4e635544f65021c346f2097daa0c8dd63dd6221
gpio: pl061: hook request if gpio-ranges avaiable

Gpio-ranges property is useful to represent which GPIOs correspond
to which pins on which pin controllers. But there may be some gpios
without pinctrl operation. So check whether gpio-ranges property
exists in device node first.

Signed-off-by: Yunlei He <heyunlei@huawei.com>
Signed-off-by: Xinwei Kong <kong.kongxinwei@hisilicon.com>
Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-pl061.c