From 53cd13a1ab325e0f4efb766d6e51a6c36dfef157 Mon Sep 17 00:00:00 2001 From: Xiaojun Sang Date: Fri, 29 Jun 2018 15:14:37 +0800 Subject: ASoC: hide bind/unbind in sysfs Exposure of driver bind/unbind to userspace via sysfs may lead to unexpected behavior. Hide bind and unbind by driver attribute. Change-Id: I20d6ee653bcc16af15d6368664aaf240c6645cd0 Signed-off-by: Xiaojun Sang --- soc/wcd-spi-ac.c | 1 + 1 file changed, 1 insertion(+) (limited to 'soc/wcd-spi-ac.c') diff --git a/soc/wcd-spi-ac.c b/soc/wcd-spi-ac.c index ee7a7a9b..bfba4014 100644 --- a/soc/wcd-spi-ac.c +++ b/soc/wcd-spi-ac.c @@ -987,6 +987,7 @@ static struct platform_driver wcd_spi_ac_driver = { .driver = { .name = "qcom,wcd-spi-ac", .of_match_table = wcd_spi_ac_of_match, + .suppress_bind_attrs = true, }, .probe = wcd_spi_ac_probe, .remove = wcd_spi_ac_remove, -- cgit v1.2.3