Merge tag 'stable/for-linus-3.18-rc0-tag' of git://git.kernel.org/pub/scm/linux/kerne...
[firefly-linux-kernel-4.4.55.git] / drivers / pinctrl / pinctrl-adi2.c
index e02943b0285d08bbb2cb65f4ab3d79692883c809..8434439c5017ac67fe6496bf446081ce73c35a92 100644 (file)
@@ -1041,7 +1041,6 @@ static int adi_gpio_remove(struct platform_device *pdev)
        u8 offset;
 
        list_del(&port->node);
-       gpiochip_remove_pin_ranges(&port->chip);
        gpiochip_remove(&port->chip);
        if (port->pint) {
                for (offset = 0; offset < port->width; offset++)