return 0;
 }
 
-static int altr_a10sr_gpio_remove(struct platform_device *pdev)
-{
-       struct altr_a10sr_gpio *gpio = platform_get_drvdata(pdev);
-
-       gpiochip_remove(&gpio->gp);
-
-       return 0;
-}
-
 static const struct of_device_id altr_a10sr_gpio_of_match[] = {
        { .compatible = "altr,a10sr-gpio" },
        { },
 
 static struct platform_driver altr_a10sr_gpio_driver = {
        .probe = altr_a10sr_gpio_probe,
-       .remove = altr_a10sr_gpio_remove,
        .driver = {
                .name   = "altr_a10sr_gpio",
                .of_match_table = of_match_ptr(altr_a10sr_gpio_of_match),