Commit 15e87051 authored by Mike Frysinger's avatar Mike Frysinger Committed by Mark Brown

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: default avatarMike Frysinger <vapier@gentoo.org>
Acked-by: default avatarLiam Girdwood <lrg@ti.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 42f32c55
...@@ -385,15 +385,7 @@ static struct spi_driver ad1836_spi_driver = { ...@@ -385,15 +385,7 @@ static struct spi_driver ad1836_spi_driver = {
static int __init ad1836_init(void) static int __init ad1836_init(void)
{ {
int ret; return spi_register_driver(&ad1836_spi_driver);
ret = spi_register_driver(&ad1836_spi_driver);
if (ret != 0) {
printk(KERN_ERR "Failed to register ad1836 SPI driver: %d\n",
ret);
}
return ret;
} }
module_init(ad1836_init); module_init(ad1836_init);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment