This patch removes special casing the EPROBE_DEFER error handling in the
driver.

Signed-off-by: Srinivas Kandagatla <[email protected]>
---
 sound/soc/qcom/storm.c | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/sound/soc/qcom/storm.c b/sound/soc/qcom/storm.c
index ee06613..2d833bf 100644
--- a/sound/soc/qcom/storm.c
+++ b/sound/soc/qcom/storm.c
@@ -122,15 +122,12 @@ static int storm_platform_probe(struct platform_device 
*pdev)
        }
 
        ret = devm_snd_soc_register_card(&pdev->dev, card);
-       if (ret == -EPROBE_DEFER) {
-               return ret;
-       } else if (ret) {
+       if (ret)
                dev_err(&pdev->dev, "%s() error registering soundcard: %d\n",
                                __func__, ret);
-               return ret;
-       }
 
-       return 0;
+       return ret;
+
 }
 
 #ifdef CONFIG_OF
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to