From: Bartosz Golaszewski Date: Wed, 9 Aug 2017 12:25:00 +0000 (+0200) Subject: gpio: mxc: disallow unbinding the driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=90e1fc4c4ccfaefe8a2cbd6e7cfff5a77ef35437;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: mxc: disallow unbinding the driver This driver is non-modular so explicitly disallow a driver unbind. Signed-off-by: Bartosz Golaszewski Signed-off-by: Linus Walleij --- 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,