summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-08-09 14:25:02 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-08-21 00:05:37 +0200
commita6f5f1b95602f8173a3270d32ec0ee17c526ecce (patch)
treeebb70093b02e6e35ec66e6bad79c06ee805a37b0 /drivers/gpio
parent60909ec93b77849b4110480a5e629bbb8e98b993 (diff)
downloadlinux-a6f5f1b95602f8173a3270d32ec0ee17c526ecce.tar.bz2
gpio: sta2x11: disallow unbinding the driver
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>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpio-sta2x11.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-sta2x11.c b/drivers/gpio/gpio-sta2x11.c
index 9e705162da8d..56beb31c03db 100644
--- a/drivers/gpio/gpio-sta2x11.c
+++ b/drivers/gpio/gpio-sta2x11.c
@@ -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,
};