浏览代码

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 年之前
父节点
当前提交
a6f5f1b956
共有 1 个文件被更改,包括 1 次插入0 次删除
  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,
 };