summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-mxc.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <brgl@bgdev.pl>2017-08-09 14:25:00 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-08-21 00:04:39 +0200
commit90e1fc4c4ccfaefe8a2cbd6e7cfff5a77ef35437 (patch)
treec052d5d6afe33b3ecc55d3ba3ea411839ee95c67 /drivers/gpio/gpio-mxc.c
parent754c04582a98fa2a24ff1b4c4b88964b114eb526 (diff)
downloadlinux-90e1fc4c4ccfaefe8a2cbd6e7cfff5a77ef35437.tar.bz2
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/gpio-mxc.c')
-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,