gpio: mxs: disallow unbinding the driver
authorBartosz Golaszewski <brgl@bgdev.pl>
Wed, 9 Aug 2017 12:25:01 +0000 (14:25 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Sun, 20 Aug 2017 22:05:08 +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-mxs.c

index 6ae583f..1599278 100644 (file)
@@ -379,6 +379,7 @@ static struct platform_driver mxs_gpio_driver = {
        .driver         = {
                .name   = "gpio-mxs",
                .of_match_table = mxs_gpio_dt_ids,
+               .suppress_bind_attrs = true,
        },
        .probe          = mxs_gpio_probe,
        .id_table       = mxs_gpio_ids,