All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/8] ASoC: AD1836: drop unnecessary spi register check
@ 2011-06-14 21:34 Mike Frysinger
  2011-06-14 21:34 ` [PATCH 2/8] ASoC: AD1836: drop hardcoded register init Mike Frysinger
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Mike Frysinger @ 2011-06-14 21:34 UTC (permalink / raw)
  To: alsa-devel, Liam Girdwood, Mark Brown
  Cc: Lars-Peter Clausen, device-drivers-devel

The only thing the init func does is register a spi driver, so if that
fails, we return the value back up to the caller who will display an
error message for us.  So drop the redundant checking/message.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
---
 sound/soc/codecs/ad1836.c |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)

diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index 754c496..d368539 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -315,15 +315,7 @@ static struct spi_driver ad1836_spi_driver = {
 
 static int __init ad1836_init(void)
 {
-	int ret;
-
-	ret = spi_register_driver(&ad1836_spi_driver);
-	if (ret != 0) {
-		printk(KERN_ERR "Failed to register ad1836 SPI driver: %d\n",
-				ret);
-	}
-
-	return ret;
+	return spi_register_driver(&ad1836_spi_driver);
 }
 module_init(ad1836_init);
 
-- 
1.7.5.3

^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2011-06-15 15:49 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14 21:34 [PATCH 1/8] ASoC: AD1836: drop unnecessary spi register check Mike Frysinger
2011-06-14 21:34 ` [PATCH 2/8] ASoC: AD1836: drop hardcoded register init Mike Frysinger
2011-06-14 21:34 ` [PATCH 3/8] ASoC: AD1836: fix intermixed tab/space indentation Mike Frysinger
2011-06-14 21:34 ` [PATCH 4/8] ASoC: AD1836: use local control_type field Mike Frysinger
2011-06-14 21:34 ` [PATCH 5/8] ASoC: AD1836: fix codec name Mike Frysinger
2011-06-14 21:34 ` [PATCH 6/8] ASoC: AD183x: rename from ad1836 to support more codecs Mike Frysinger
2011-06-14 21:34 ` [PATCH 7/8] ASoC: AD183x: rename suspend/resume funcs Mike Frysinger
2011-06-14 21:34 ` [PATCH 8/8] ASoC: AD183x: add support for more multiple parts Mike Frysinger
2011-06-15 14:53   ` Mark Brown
2011-06-14 21:55 ` [PATCH 1/8] ASoC: AD1836: drop unnecessary spi register check Lars-Peter Clausen
2011-06-15 14:40   ` [Device-drivers-devel] " Mike Frysinger
2011-06-15 14:56     ` Lars-Peter Clausen
2011-06-15 15:48       ` Mike Frysinger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.