From: Bartosz Golaszewski Date: Wed, 9 Aug 2017 12:25:02 +0000 (+0200) Subject: gpio: sta2x11: disallow unbinding the driver X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6f5f1b95602f8173a3270d32ec0ee17c526ecce;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git gpio: sta2x11: 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-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, };