diff options
author | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-07 18:45:12 -0500 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> | 2013-03-15 08:33:39 -0400 |
commit | 247127f90ba1fcc234008e00e937537a89eef9ca (patch) | |
tree | c187df2d4d479f1a56f5c4d8b07b96b22f444200 /drivers/pinctrl/sh-pfc/pinctrl.c | |
parent | 934cb02bab9003bf65afe73e9146a1ea63b26c40 (diff) |
sh-pfc: Replace pinctrl_add_gpio_range() with gpiochip_add_pin_range()
Adding a GPIO range to a pinctrl device logically belongs to the GPIO
driver. Switch to the right API.
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/sh-pfc/pinctrl.c')
-rw-r--r-- | drivers/pinctrl/sh-pfc/pinctrl.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/pinctrl/sh-pfc/pinctrl.c b/drivers/pinctrl/sh-pfc/pinctrl.c index 78bd277c01d9..a60c317d988a 100644 --- a/drivers/pinctrl/sh-pfc/pinctrl.c +++ b/drivers/pinctrl/sh-pfc/pinctrl.c | |||
@@ -28,7 +28,6 @@ | |||
28 | struct sh_pfc_pinctrl { | 28 | struct sh_pfc_pinctrl { |
29 | struct pinctrl_dev *pctl; | 29 | struct pinctrl_dev *pctl; |
30 | struct pinctrl_desc pctl_desc; | 30 | struct pinctrl_desc pctl_desc; |
31 | struct pinctrl_gpio_range range; | ||
32 | 31 | ||
33 | struct sh_pfc *pfc; | 32 | struct sh_pfc *pfc; |
34 | 33 | ||
@@ -377,14 +376,6 @@ int sh_pfc_register_pinctrl(struct sh_pfc *pfc) | |||
377 | if (IS_ERR(pmx->pctl)) | 376 | if (IS_ERR(pmx->pctl)) |
378 | return PTR_ERR(pmx->pctl); | 377 | return PTR_ERR(pmx->pctl); |
379 | 378 | ||
380 | pmx->range.name = DRV_NAME, | ||
381 | pmx->range.id = 0; | ||
382 | pmx->range.npins = pfc->info->nr_pins; | ||
383 | pmx->range.base = 0; | ||
384 | pmx->range.pin_base = 0; | ||
385 | |||
386 | pinctrl_add_gpio_range(pmx->pctl, &pmx->range); | ||
387 | |||
388 | return 0; | 379 | return 0; |
389 | } | 380 | } |
390 | 381 | ||