summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/ad1836.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-15 15:29:19 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-06-16 11:41:46 +0100
commit15e870512956a1e573d033b3bb6ffbf3237e9723 (patch)
tree6322cfc1bd47ba0338d1b19784e06dfccbe13200 /sound/soc/codecs/ad1836.c
parent42f32c559131921f3bb014e0ac2107345f14887c (diff)
ASoC: AD1836: drop unnecessary spi register check
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> Acked-by: Liam Girdwood <lrg@ti.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/ad1836.c')
-rw-r--r--sound/soc/codecs/ad1836.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/codecs/ad1836.c b/sound/soc/codecs/ad1836.c
index ff8e73850ed5..e8a986f84c13 100644
--- a/sound/soc/codecs/ad1836.c
+++ b/sound/soc/codecs/ad1836.c
@@ -385,15 +385,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);