Browse Source

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>
Bartosz Golaszewski 8 years ago
parent
commit
a6f5f1b956
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/gpio/gpio-sta2x11.c

+ 1 - 0
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,
 };