]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: mt7622: stop using the deprecated pinctrl_add_gpio_range
authorSean Wang <sean.wang@mediatek.com>
Fri, 22 Jun 2018 03:49:07 +0000 (11:49 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 14 Jul 2018 10:47:04 +0000 (12:47 +0200)
commitc83fec362e02e4ea2a6b471631bb53f288c23ceb
treee4dd1b6755002d87153f57eca0bde97942ede7a8
parent31c9ddb646f844b6c1ec57740195aac1954aef8d
pinctrl: mt7622: stop using the deprecated pinctrl_add_gpio_range

If the pinctrl node has the gpio-ranges property, the range will be added
by the gpio core and doesn't need to be added by the pinctrl driver.

But for keeping backward compatibility, an explicit pinctrl_add_gpio_range
is still needed to be called when there is a missing gpio-ranges in pinctrl
node in old dts files.

Cc: stable@vger.kernel.org
Fixes: b4aabf92da89 ("pinctrl: mediatek: add pinctrl driver for MT7622 SoC")
Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mediatek/pinctrl-mt7622.c