Skip to contentSkip to conversation

ASoC: wm0010: Remove .bus field setting from wm0010_spi_driver

PATCH In review Axel Lin 3 participants 3 messages Jul 2, 2015 – Jul 3, 2015

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: wm0010: Remove .bus field setting from wm0010_spi_driver

The .bus field will be set by spi_register_driver() so we don't need to set it in wm0010_spi_driver.

---
 sound/soc/codecs/wm0010.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/wm0010.c +0 -1
index 6560a66..e1da49f 100644
@@ -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,
Signature · 1 line
2.1.0
maintainer
#2 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

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.