Browse Source

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 <[email protected]>
Xiaojun Sang 6 years ago
parent
commit
53cd13a1ab
53 changed files with 86 additions and 23 deletions
  1. 1 0
      asoc/codecs/audio-ext-clk-up.c
  2. 2 1
      asoc/codecs/audio-ext-clk.c
  3. 1 0
      asoc/codecs/bolero/bolero-cdc.c
  4. 1 0
      asoc/codecs/bolero/bolero-clk-rsc.c
  5. 1 0
      asoc/codecs/bolero/rx-macro.c
  6. 1 0
      asoc/codecs/bolero/tx-macro.c
  7. 1 0
      asoc/codecs/bolero/va-macro.c
  8. 1 0
      asoc/codecs/bolero/wsa-macro.c
  9. 2 1
      asoc/codecs/msm-cdc-pinctrl.c
  10. 2 1
      asoc/codecs/msm_hdmi_codec_rx.c
  11. 2 1
      asoc/codecs/msm_stub.c
  12. 2 1
      asoc/codecs/wcd-dsp-mgr.c
  13. 1 0
      asoc/codecs/wcd9335.c
  14. 1 0
      asoc/codecs/wcd934x/wcd934x.c
  15. 1 0
      asoc/codecs/wcd937x/wcd937x.c
  16. 1 0
      asoc/codecs/wcd938x/wcd938x.c
  17. 2 1
      asoc/codecs/wcd9xxx-irq.c
  18. 1 0
      asoc/kona.c
  19. 1 0
      asoc/msm-compress-q6-v2.c
  20. 2 1
      asoc/msm-cpe-lsm.c
  21. 2 1
      asoc/msm-dai-fe.c
  22. 2 1
      asoc/msm-dai-q6-hdmi-v2.c
  23. 10 0
      asoc/msm-dai-q6-v2.c
  24. 3 1
      asoc/msm-dai-stub-v2.c
  25. 1 0
      asoc/msm-lsm-client.c
  26. 1 0
      asoc/msm-pcm-afe-v2.c
  27. 2 1
      asoc/msm-pcm-dtmf-v2.c
  28. 2 1
      asoc/msm-pcm-host-voice-v2.c
  29. 2 1
      asoc/msm-pcm-hostless.c
  30. 1 0
      asoc/msm-pcm-loopback-v2.c
  31. 2 1
      asoc/msm-pcm-q6-noirq.c
  32. 1 0
      asoc/msm-pcm-q6-v2.c
  33. 1 0
      asoc/msm-pcm-routing-v2.c
  34. 1 0
      asoc/msm-pcm-voice-v2.c
  35. 2 1
      asoc/msm-pcm-voip-v2.c
  36. 1 0
      asoc/msm-transcode-loopback-q6-v2.c
  37. 1 0
      asoc/qcs405.c
  38. 2 1
      asoc/sa8155.c
  39. 1 0
      asoc/sm6150.c
  40. 2 1
      asoc/sm8150.c
  41. 2 1
      dsp/adsp-loader.c
  42. 2 1
      dsp/avtimer.c
  43. 1 0
      dsp/msm_audio_ion.c
  44. 2 1
      dsp/msm_mdf.c
  45. 1 0
      dsp/q6core.c
  46. 1 0
      dsp/voice_mhi.c
  47. 1 0
      ipc/apr.c
  48. 2 1
      ipc/wcd-dsp-glink.c
  49. 1 0
      soc/pinctrl-lpi.c
  50. 2 1
      soc/pinctrl-wcd.c
  51. 1 0
      soc/swr-mstr-ctrl.c
  52. 2 1
      soc/swr-wcd-ctrl.c
  53. 1 0
      soc/wcd-spi-ac.c

+ 1 - 0
asoc/codecs/audio-ext-clk-up.c

@@ -565,6 +565,7 @@ static struct platform_driver audio_ref_clk_driver = {
 		.name = "audio-ref-clk",
 		.owner = THIS_MODULE,
 		.of_match_table = audio_ref_clk_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = audio_ref_clk_probe,
 	.remove = audio_ref_clk_remove,

+ 2 - 1
asoc/codecs/audio-ext-clk.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2015-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2017, 2019 The Linux Foundation. All rights reserved.
  */
 
 #include <linux/kernel.h>
@@ -321,6 +321,7 @@ static struct platform_driver audio_ref_clk_driver = {
 		.name = "audio-ref-clk",
 		.owner = THIS_MODULE,
 		.of_match_table = audio_ref_clk_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = audio_ref_clk_probe,
 	.remove = audio_ref_clk_remove,

+ 1 - 0
asoc/codecs/bolero/bolero-cdc.c

@@ -1026,6 +1026,7 @@ static struct platform_driver bolero_drv = {
 		.name = "bolero-codec",
 		.owner = THIS_MODULE,
 		.of_match_table = bolero_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = bolero_probe,
 	.remove = bolero_remove,

+ 1 - 0
asoc/codecs/bolero/bolero-clk-rsc.c

@@ -603,6 +603,7 @@ static struct platform_driver bolero_clk_rsc_mgr = {
 		.name = "bolero-clk-rsc-mngr",
 		.owner = THIS_MODULE,
 		.of_match_table = bolero_clk_rsc_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = bolero_clk_rsc_probe,
 	.remove = bolero_clk_rsc_remove,

+ 1 - 0
asoc/codecs/bolero/rx-macro.c

@@ -3712,6 +3712,7 @@ static struct platform_driver rx_macro_driver = {
 		.owner = THIS_MODULE,
 		.pm = &bolero_dev_pm_ops,
 		.of_match_table = rx_macro_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = rx_macro_probe,
 	.remove = rx_macro_remove,

+ 1 - 0
asoc/codecs/bolero/tx-macro.c

@@ -2077,6 +2077,7 @@ static struct platform_driver tx_macro_driver = {
 		.owner = THIS_MODULE,
 		.pm = &bolero_dev_pm_ops,
 		.of_match_table = tx_macro_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = tx_macro_probe,
 	.remove = tx_macro_remove,

+ 1 - 0
asoc/codecs/bolero/va-macro.c

@@ -1756,6 +1756,7 @@ static struct platform_driver va_macro_driver = {
 		.owner = THIS_MODULE,
 		.pm = &bolero_dev_pm_ops,
 		.of_match_table = va_macro_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = va_macro_probe,
 	.remove = va_macro_remove,

+ 1 - 0
asoc/codecs/bolero/wsa-macro.c

@@ -3008,6 +3008,7 @@ static struct platform_driver wsa_macro_driver = {
 		.owner = THIS_MODULE,
 		.pm = &bolero_dev_pm_ops,
 		.of_match_table = wsa_macro_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = wsa_macro_probe,
 	.remove = wsa_macro_remove,

+ 2 - 1
asoc/codecs/msm-cdc-pinctrl.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/kernel.h>
@@ -233,6 +233,7 @@ static struct platform_driver msm_cdc_pinctrl_driver = {
 		.name = "msm-cdc-pinctrl",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_cdc_pinctrl_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_cdc_pinctrl_probe,
 	.remove = msm_cdc_pinctrl_remove,

+ 2 - 1
asoc/codecs/msm_hdmi_codec_rx.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  */
 #include <linux/platform_device.h>
 #include <linux/slab.h>
@@ -698,6 +698,7 @@ static struct platform_driver msm_ext_disp_audio_codec_rx_driver = {
 		.name = "msm-ext-disp-audio-codec-rx",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_ext_disp_audio_codec_rx_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_ext_disp_audio_codec_rx_plat_probe,
 	.remove = msm_ext_disp_audio_codec_rx_plat_remove,

+ 2 - 1
asoc/codecs/msm_stub.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2011-2014, 2017-2018 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2014, 2017-2019 The Linux Foundation. All rights reserved.
  */
 #include <linux/platform_device.h>
 #include <linux/slab.h>
@@ -63,6 +63,7 @@ static struct platform_driver msm_stub_driver = {
 		.name = "msm-stub-codec",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_stub_codec_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_stub_dev_probe,
 	.remove = msm_stub_dev_remove,

+ 2 - 1
asoc/codecs/wcd-dsp-mgr.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  */
 #include <linux/module.h>
 #include <linux/platform_device.h>
@@ -1306,6 +1306,7 @@ static struct platform_driver wdsp_mgr_driver = {
 		.name = "wcd-dsp-mgr",
 		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(wdsp_mgr_dt_match),
+		.suppress_bind_attrs = true,
 	},
 	.probe = wdsp_mgr_probe,
 	.remove = wdsp_mgr_remove,

+ 1 - 0
asoc/codecs/wcd9335.c

@@ -14796,6 +14796,7 @@ static struct platform_driver tasha_codec_driver = {
 #ifdef CONFIG_PM
 		.pm = &tasha_pm_ops,
 #endif
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
asoc/codecs/wcd934x/wcd934x.c

@@ -11471,6 +11471,7 @@ static struct platform_driver tavil_codec_driver = {
 #ifdef CONFIG_PM
 		.pm = &tavil_pm_ops,
 #endif
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
asoc/codecs/wcd937x/wcd937x.c

@@ -2923,6 +2923,7 @@ static struct platform_driver wcd937x_codec_driver = {
 #ifdef CONFIG_PM_SLEEP
 		.pm = &wcd937x_dev_pm_ops,
 #endif
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
asoc/codecs/wcd938x/wcd938x.c

@@ -2973,6 +2973,7 @@ static struct platform_driver wcd938x_codec_driver = {
 #ifdef CONFIG_PM_SLEEP
 		.pm = &wcd938x_dev_pm_ops,
 #endif
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 2 - 1
asoc/codecs/wcd9xxx-irq.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2011-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2019, The Linux Foundation. All rights reserved.
  */
 #include <linux/bitops.h>
 #include <linux/kernel.h>
@@ -878,6 +878,7 @@ static struct platform_driver wcd9xxx_irq_driver = {
 		.name = "wcd9xxx_intc",
 		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(of_match),
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
asoc/kona.c

@@ -6712,6 +6712,7 @@ static struct platform_driver kona_asoc_machine_driver = {
 		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = kona_asoc_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_asoc_machine_probe,
 	.remove = msm_asoc_machine_remove,

+ 1 - 0
asoc/msm-compress-q6-v2.c

@@ -5387,6 +5387,7 @@ static struct platform_driver msm_compr_driver = {
 		.name = "msm-compress-dsp",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_compr_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_compr_dev_probe,
 	.remove = msm_compr_remove,

+ 2 - 1
asoc/msm-cpe-lsm.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -3331,6 +3331,7 @@ static struct platform_driver msm_cpe_lsm_driver = {
 		.name = "msm-cpe-lsm",
 		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(msm_cpe_lsm_dt_match),
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_cpe_lsm_probe,
 	.remove = msm_cpe_lsm_remove,

+ 2 - 1
asoc/msm-dai-fe.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  */
 
 
@@ -2765,6 +2765,7 @@ static struct platform_driver msm_fe_dai_driver = {
 		.name = "msm-dai-fe",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_fe_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 2 - 1
asoc/msm-dai-q6-hdmi-v2.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -586,6 +586,7 @@ static struct platform_driver msm_dai_q6_hdmi_driver = {
 		.name = "msm-dai-q6-hdmi",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_hdmi_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 10 - 0
asoc/msm-dai-q6-v2.c

@@ -4300,6 +4300,7 @@ static struct platform_driver msm_auxpcm_dev_driver = {
 		.name = "msm-auxpcm-dev",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_auxpcm_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6317,6 +6318,7 @@ static struct platform_driver msm_dai_q6_dev = {
 		.name = "msm-dai-q6-dev",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6354,6 +6356,7 @@ static struct platform_driver msm_dai_q6 = {
 		.name = "msm-dai-q6",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6389,6 +6392,7 @@ static struct platform_driver msm_dai_mi2s_q6 = {
 		.name = "msm-dai-mi2s",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_mi2s_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6406,6 +6410,7 @@ static struct platform_driver msm_dai_q6_mi2s_driver = {
 		.name = "msm-dai-q6-mi2s",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_mi2s_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6475,6 +6480,7 @@ static struct platform_driver msm_dai_q6_spdif_driver = {
 		.name = "msm-dai-q6-spdif",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_spdif_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -6699,6 +6705,7 @@ static struct platform_driver msm_dai_tdm_q6 = {
 		.name = "msm-dai-tdm",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_tdm_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -10331,6 +10338,7 @@ static struct platform_driver msm_dai_q6_tdm_driver = {
 		.name = "msm-dai-q6-tdm",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_tdm_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -11234,6 +11242,7 @@ static struct platform_driver msm_dai_q6_cdc_dma_driver = {
 		.name = "msm-dai-cdc-dma-dev",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_q6_cdc_dma_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -11271,6 +11280,7 @@ static struct platform_driver msm_dai_cdc_dma_q6 = {
 		.name = "msm-dai-cdc-dma",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_cdc_dma_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 3 - 1
asoc/msm-dai-stub-v2.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2013-2014, 2017 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2014, 2017, 2019 The Linux Foundation. All rights reserved.
  */
 #include <linux/init.h>
 #include <linux/module.h>
@@ -302,6 +302,7 @@ static struct platform_driver msm_dai_stub_dev = {
 		.name = "msm-dai-stub-dev",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_stub_dev_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 
@@ -343,6 +344,7 @@ static struct platform_driver msm_dai_stub_driver = {
 		.name = "msm-dai-stub",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_dai_stub_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
asoc/msm-lsm-client.c

@@ -3033,6 +3033,7 @@ static struct platform_driver msm_lsm_driver = {
 		.name = "msm-lsm-client",
 		.owner = THIS_MODULE,
 		.of_match_table = of_match_ptr(msm_lsm_client_dt_match),
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_lsm_probe,
 	.remove = msm_lsm_remove,

+ 1 - 0
asoc/msm-pcm-afe-v2.c

@@ -896,6 +896,7 @@ static struct platform_driver msm_afe_driver = {
 		.name = "msm-pcm-afe",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_afe_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_afe_probe,
 	.remove = msm_afe_remove,

+ 2 - 1
asoc/msm-pcm-dtmf-v2.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2013-2014, 2017-2018 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2014, 2017-2019 The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -567,6 +567,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-pcm-dtmf",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_dtmf_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 2 - 1
asoc/msm-pcm-host-voice-v2.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2013-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2013-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -1477,6 +1477,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-voice-host-pcm",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_voice_host_pcm_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 2 - 1
asoc/msm-pcm-hostless.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2011-2014, 2017-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2014, 2017-2019 The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -56,6 +56,7 @@ static struct platform_driver msm_pcm_hostless_driver = {
 		.name = "msm-pcm-hostless",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_hostless_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_hostless_probe,
 	.remove = msm_pcm_hostless_remove,

+ 1 - 0
asoc/msm-pcm-loopback-v2.c

@@ -1504,6 +1504,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-pcm-loopback",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_loopback_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 2 - 1
asoc/msm-pcm-q6-noirq.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -1340,6 +1340,7 @@ static struct platform_driver msm_pcm_driver_noirq = {
 		.name = "msm-pcm-dsp-noirq",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_noirq_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 1 - 0
asoc/msm-pcm-q6-v2.c

@@ -2695,6 +2695,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-pcm-dsp",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 1 - 0
asoc/msm-pcm-routing-v2.c

@@ -24817,6 +24817,7 @@ static struct platform_driver msm_routing_pcm_driver = {
 		.name = "msm-pcm-routing",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_pcm_routing_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_routing_pcm_probe,
 	.remove = msm_routing_pcm_remove,

+ 1 - 0
asoc/msm-pcm-voice-v2.c

@@ -812,6 +812,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-pcm-voice",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_voice_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 2 - 1
asoc/msm-pcm-voip-v2.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2012-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2012-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -1670,6 +1670,7 @@ static struct platform_driver msm_pcm_driver = {
 		.name = "msm-voip-dsp",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_voip_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_pcm_probe,
 	.remove = msm_pcm_remove,

+ 1 - 0
asoc/msm-transcode-loopback-q6-v2.c

@@ -1695,6 +1695,7 @@ static struct platform_driver msm_transcode_loopback_driver = {
 		.name = "msm-transcode-loopback",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_transcode_loopback_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_transcode_dev_probe,
 	.remove = msm_transcode_remove,

+ 1 - 0
asoc/qcs405.c

@@ -8843,6 +8843,7 @@ static struct platform_driver qcs405_asoc_machine_driver = {
 		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = qcs405_asoc_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_asoc_machine_probe,
 	.remove = msm_asoc_machine_remove,

+ 2 - 1
asoc/sa8155.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2014-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2014-2019, The Linux Foundation. All rights reserved.
  */
 /*
  * Copyright 2011, The Android Open Source Project
@@ -7220,6 +7220,7 @@ static struct platform_driver sa8155_asoc_machine_driver = {
 		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = sa8155_asoc_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_asoc_machine_probe,
 	.remove = msm_asoc_machine_remove,

+ 1 - 0
asoc/sm6150.c

@@ -9297,6 +9297,7 @@ static struct platform_driver sm6150_asoc_machine_driver = {
 		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = sm6150_asoc_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_asoc_machine_probe,
 	.remove = msm_asoc_machine_remove,

+ 2 - 1
asoc/sm8150.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/clk.h>
@@ -7245,6 +7245,7 @@ static struct platform_driver sm8150_asoc_machine_driver = {
 		.owner = THIS_MODULE,
 		.pm = &snd_soc_pm_ops,
 		.of_match_table = sm8150_asoc_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_asoc_machine_probe,
 	.remove = msm_asoc_machine_remove,

+ 2 - 1
dsp/adsp-loader.c

@@ -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,

+ 2 - 1
dsp/avtimer.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2012-2015, 2017-2018 The Linux Foundation. All rights reserved.
+ * Copyright (c) 2012-2015, 2017-2019 The Linux Foundation. All rights reserved.
  */
 
 #include <linux/kernel.h>
@@ -536,6 +536,7 @@ static struct platform_driver dev_avtimer_driver = {
 	.driver = {
 		.name = "dev_avtimer",
 		.of_match_table = avtimer_machine_of_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
dsp/msm_audio_ion.c

@@ -806,6 +806,7 @@ static struct platform_driver msm_audio_ion_driver = {
 		.name = "msm-audio-ion",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_audio_ion_dt_match,
+		.suppress_bind_attrs = true,
 	},
 	.probe = msm_audio_ion_probe,
 	.remove = msm_audio_ion_remove,

+ 2 - 1
dsp/msm_mdf.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
  */
 #include <linux/init.h>
 #include <linux/kernel.h>
@@ -694,6 +694,7 @@ static struct platform_driver msm_mdf_driver = {
 		.name = "msm-mdf",
 		.owner = THIS_MODULE,
 		.of_match_table = msm_mdf_match_table,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
dsp/q6core.c

@@ -1907,6 +1907,7 @@ static struct platform_driver q6core_driver = {
 		.name = "q6core_audio",
 		.owner = THIS_MODULE,
 		.of_match_table = q6core_of_match,
+		.suppress_bind_attrs = true,
 	}
 };
 

+ 1 - 0
dsp/voice_mhi.c

@@ -591,6 +591,7 @@ static struct platform_driver voice_mhi_platform_driver = {
 		.name = "voice_mhi_audio",
 		.owner = THIS_MODULE,
 		.of_match_table = voice_mhi_of_match,
+		.suppress_bind_attrs = true,
 	}
 };
 

+ 1 - 0
ipc/apr.c

@@ -1235,6 +1235,7 @@ static struct platform_driver apr_driver = {
 		.name = "audio_apr",
 		.owner = THIS_MODULE,
 		.of_match_table = apr_machine_of_match,
+		.suppress_bind_attrs = true,
 	}
 };
 

+ 2 - 1
ipc/wcd-dsp-glink.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/init.h>
@@ -755,6 +755,7 @@ static struct platform_driver wdsp_glink_driver = {
 		.name   = WDSP_GLINK_DRIVER_NAME,
 		.owner  = THIS_MODULE,
 		.of_match_table = wdsp_glink_of_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 1 - 0
soc/pinctrl-lpi.c

@@ -801,6 +801,7 @@ static struct platform_driver lpi_pinctrl_driver = {
 		   .name = "qcom-lpi-pinctrl",
 		   .pm = &lpi_pinctrl_dev_pm_ops,
 		   .of_match_table = lpi_pinctrl_of_match,
+		   .suppress_bind_attrs = true,
 	},
 	.probe = lpi_pinctrl_probe,
 	.remove = lpi_pinctrl_remove,

+ 2 - 1
soc/pinctrl-wcd.c

@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2016-2017, 2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/gpio.h>
@@ -416,6 +416,7 @@ static struct platform_driver wcd_pinctrl_driver = {
 	.driver = {
 		   .name = "qcom-wcd-pinctrl",
 		   .of_match_table = wcd_pinctrl_of_match,
+		   .suppress_bind_attrs = true,
 	},
 	.probe = wcd_pinctrl_probe,
 	.remove = wcd_pinctrl_remove,

+ 1 - 0
soc/swr-mstr-ctrl.c

@@ -2921,6 +2921,7 @@ static struct platform_driver swr_mstr_driver = {
 		.owner = THIS_MODULE,
 		.pm = &swrm_dev_pm_ops,
 		.of_match_table = swrm_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

+ 2 - 1
soc/swr-wcd-ctrl.c

@@ -1,5 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0-only
-/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2019, The Linux Foundation. All rights reserved.
  */
 
 #include <linux/irq.h>
@@ -1929,6 +1929,7 @@ static struct platform_driver swr_mstr_driver = {
 		.owner = THIS_MODULE,
 		.pm = &swrm_dev_pm_ops,
 		.of_match_table = swrm_dt_match,
+		.suppress_bind_attrs = true,
 	},
 };
 

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