diff options
Diffstat (limited to 'drivers/pinctrl/samsung/pinctrl-samsung.c')
-rw-r--r-- | drivers/pinctrl/samsung/pinctrl-samsung.c | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/drivers/pinctrl/samsung/pinctrl-samsung.c b/drivers/pinctrl/samsung/pinctrl-samsung.c index 4a47691c32b1..2d37c8f49f3c 100644 --- a/drivers/pinctrl/samsung/pinctrl-samsung.c +++ b/drivers/pinctrl/samsung/pinctrl-samsung.c | |||
@@ -946,9 +946,7 @@ static int samsung_gpiolib_register(struct platform_device *pdev, | |||
946 | 946 | ||
947 | fail: | 947 | fail: |
948 | for (--i, --bank; i >= 0; --i, --bank) | 948 | for (--i, --bank; i >= 0; --i, --bank) |
949 | if (gpiochip_remove(&bank->gpio_chip)) | 949 | gpiochip_remove(&bank->gpio_chip); |
950 | dev_err(&pdev->dev, "gpio chip %s remove failed\n", | ||
951 | bank->gpio_chip.label); | ||
952 | return ret; | 950 | return ret; |
953 | } | 951 | } |
954 | 952 | ||
@@ -958,16 +956,11 @@ static int samsung_gpiolib_unregister(struct platform_device *pdev, | |||
958 | { | 956 | { |
959 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; | 957 | struct samsung_pin_ctrl *ctrl = drvdata->ctrl; |
960 | struct samsung_pin_bank *bank = ctrl->pin_banks; | 958 | struct samsung_pin_bank *bank = ctrl->pin_banks; |
961 | int ret = 0; | ||
962 | int i; | 959 | int i; |
963 | 960 | ||
964 | for (i = 0; !ret && i < ctrl->nr_banks; ++i, ++bank) | 961 | for (i = 0; i < ctrl->nr_banks; ++i, ++bank) |
965 | ret = gpiochip_remove(&bank->gpio_chip); | 962 | gpiochip_remove(&bank->gpio_chip); |
966 | 963 | return 0; | |
967 | if (ret) | ||
968 | dev_err(&pdev->dev, "gpio chip remove failed\n"); | ||
969 | |||
970 | return ret; | ||
971 | } | 964 | } |
972 | 965 | ||
973 | static const struct of_device_id samsung_pinctrl_dt_match[]; | 966 | static const struct of_device_id samsung_pinctrl_dt_match[]; |