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 <xsang@codeaurora.org>
This commit is contained in:
Xiaojun Sang
2018-06-29 15:14:37 +08:00
committed by Meng Wang
parent 586382a701
commit 53cd13a1ab
53 changed files with 86 additions and 23 deletions

View File

@@ -1,6 +1,6 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2012-2014, 2017-2018, The Linux Foundation. All rights reserved.
* Copyright (c) 2012-2014, 2017-2019, The Linux Foundation. All rights reserved.
*/
#include <linux/init.h>
@@ -333,6 +333,7 @@ static struct platform_driver adsp_loader_driver = {
.name = "adsp-loader",
.owner = THIS_MODULE,
.of_match_table = adsp_loader_dt_match,
.suppress_bind_attrs = true,
},
.probe = adsp_loader_probe,
.remove = adsp_loader_remove,