summaryrefslogtreecommitdiff
path: root/drivers/gpio
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-08-09 15:25:00 +0300
committerLinus Walleij <linus.walleij@linaro.org>2017-08-21 01:04:39 +0300
commit90e1fc4c4ccfaefe8a2cbd6e7cfff5a77ef35437 (patch)
treec052d5d6afe33b3ecc55d3ba3ea411839ee95c67 /drivers/gpio
parent754c04582a98fa2a24ff1b4c4b88964b114eb526 (diff)
downloadlinux-90e1fc4c4ccfaefe8a2cbd6e7cfff5a77ef35437.tar.xz
gpio: mxc: 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-mxc.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-mxc.c b/drivers/gpio/gpio-mxc.c
index 3dcd990f416e..619fe7ad3cec 100644
--- a/drivers/gpio/gpio-mxc.c
+++ b/drivers/gpio/gpio-mxc.c
@@ -508,6 +508,7 @@ static struct platform_driver mxc_gpio_driver = {
.driver = {
.name = "gpio-mxc",
.of_match_table = mxc_gpio_dt_ids,
+ .suppress_bind_attrs = true,
},
.probe = mxc_gpio_probe,
.id_table = mxc_gpio_devtype,