ASoC: wm0010: Remove .bus field setting from wm0010_spi_driver
diff mbox

Message ID 1435809778.4609.0.camel@ingics.com
State New
Headers show

Commit Message

Axel Lin July 2, 2015, 4:02 a.m. UTC
The .bus field will be set by spi_register_driver() so we don't need to
set it in wm0010_spi_driver.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/wm0010.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Charles Keepax July 2, 2015, 11:29 a.m. UTC | #1
On Thu, Jul 02, 2015 at 12:02:58PM +0800, Axel Lin wrote:
> The .bus field will be set by spi_register_driver() so we don't need to
> set it in wm0010_spi_driver.
> 
> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---

Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>

Thanks,
Charles
Mark Brown July 3, 2015, 12:47 p.m. UTC | #2
On Thu, Jul 02, 2015 at 12:02:58PM +0800, Axel Lin wrote:
> The .bus field will be set by spi_register_driver() so we don't need to
> set it in wm0010_spi_driver.

A similar change has already been sent.

Patch
diff mbox

diff --git a/sound/soc/codecs/wm0010.c b/sound/soc/codecs/wm0010.c
index 6560a66..e1da49f 100644
--- a/sound/soc/codecs/wm0010.c
+++ b/sound/soc/codecs/wm0010.c
@@ -1003,7 +1003,6 @@  static int wm0010_spi_remove(struct spi_device *spi)
 static struct spi_driver wm0010_spi_driver = {
 	.driver = {
 		.name	= "wm0010",
-		.bus 	= &spi_bus_type,
 		.owner	= THIS_MODULE,
 	},
 	.probe		= wm0010_spi_probe,