gpio: sta2x11: disallow unbinding the driver
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 9 Aug 2017 12:25:02 +0000 (14:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Aug 2017 22:05:37 +0000 (00:05 +0200)
This driver is non-modular so explicitly disallow a driver unbind.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-sta2x11.c

index 9e70516..56beb31 100644 (file)
@@ -432,6 +432,7 @@ static int gsta_probe(struct platform_device *dev)
 static struct platform_driver sta2x11_gpio_platform_driver = {
        .driver = {
                .name   = "sta2x11-gpio",
+               .suppress_bind_attrs = true,
        },
        .probe = gsta_probe,
 };