From patchwork Tue Jun 9 13:35:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 49659 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A717B245D4 for ; Tue, 9 Jun 2015 13:35:38 +0000 (UTC) Received: by wgez8 with SMTP id z8sf4575795wge.2 for ; Tue, 09 Jun 2015 06:35:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=Ee/5ZJqFHWMIkAyqDX7lN+lMKgG90N63ngrE49uOJR4=; b=f+F2ySQX4uxeXeVpgWspp6YIewQ/Bdsx0zdQfdDpNnZXuNjNq/4Q0g/FwQq+B/Sbao bTcF0kirZEqTwrQhJDmRlPKWqWhGOfdrSbTmmfSgfSbSjMbvvvPR3q/HfjrY0WLqTOd6 yhnYBibhC+apn94nfUUHxM6oHajG5sXmye+Iyv1WZp4l0Coj+7UsOk40SGv+7+8U0/vU zB9uC8Sp+5e90/VXmBuOiZ3iaIeJgApEhLHFhAN5D3eYGlTyMjtll4N3/3FKiN6O74MP 81onkwRKkzcN4jvyKgux5IR0YwScXYk5jtWZclRdynEoRMMrd3XjWCX8afaxgdVONOWL MdCg== X-Gm-Message-State: ALoCoQnd7EOWRWZp1w+wGaLZ+wjTc6uO0uYLOid+yQqUm2ZfX2HMM0Qcy8v07pFm+3neFqN5friL X-Received: by 10.112.26.5 with SMTP id h5mr21965913lbg.4.1433856937960; Tue, 09 Jun 2015 06:35:37 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.37.8 with SMTP id u8ls73674laj.39.gmail; Tue, 09 Jun 2015 06:35:37 -0700 (PDT) X-Received: by 10.112.9.104 with SMTP id y8mr16575477lba.49.1433856937697; Tue, 09 Jun 2015 06:35:37 -0700 (PDT) Received: from mail-lb0-f181.google.com (mail-lb0-f181.google.com. [209.85.217.181]) by mx.google.com with ESMTPS id cz4si5770294lac.110.2015.06.09.06.35.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Jun 2015 06:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) client-ip=209.85.217.181; Received: by lbcue7 with SMTP id ue7so10842377lbc.0 for ; Tue, 09 Jun 2015 06:35:37 -0700 (PDT) X-Received: by 10.112.140.231 with SMTP id rj7mr22465068lbb.76.1433856937544; Tue, 09 Jun 2015 06:35:37 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.108.230 with SMTP id hn6csp2617133lbb; Tue, 9 Jun 2015 06:35:36 -0700 (PDT) X-Received: by 10.70.19.204 with SMTP id h12mr39601240pde.84.1433856935467; Tue, 09 Jun 2015 06:35:35 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ai7si8954243pbd.187.2015.06.09.06.35.34; Tue, 09 Jun 2015 06:35:35 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751582AbbFINfd (ORCPT + 7 others); Tue, 9 Jun 2015 09:35:33 -0400 Received: from mail-wi0-f182.google.com ([209.85.212.182]:35621 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932537AbbFINfc (ORCPT ); Tue, 9 Jun 2015 09:35:32 -0400 Received: by wiga1 with SMTP id a1so17438493wig.0 for ; Tue, 09 Jun 2015 06:35:31 -0700 (PDT) X-Received: by 10.180.36.103 with SMTP id p7mr32379386wij.88.1433856931260; Tue, 09 Jun 2015 06:35:31 -0700 (PDT) Received: from srini-ThinkPad-X1-Carbon-2nd.dlink.com (host-2-99-231-135.as13285.net. [2.99.231.135]) by mx.google.com with ESMTPSA id nb9sm2893721wic.10.2015.06.09.06.35.26 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Jun 2015 06:35:30 -0700 (PDT) From: Srinivas Kandagatla To: Patrick Lai , Mark Brown , kwestfie@codeaurora.org Cc: Rob Herring , Banajit Goswami , Liam Girdwood , Jaroslav Kysela , Takashi Iwai , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org, linux-arm-msm@vger.kernel.org, Srinivas Kandagatla Subject: [PATCH 2/2] ASoC: qcom: storm: remove special casing EPROBE_DEFER Date: Tue, 9 Jun 2015 14:35:22 +0100 Message-Id: <1433856922-15541-1-git-send-email-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1433856861-15433-1-git-send-email-srinivas.kandagatla@linaro.org> References: <1433856861-15433-1-git-send-email-srinivas.kandagatla@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: srinivas.kandagatla@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.217.181 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , This patch removes special casing the EPROBE_DEFER error handling in the driver. Signed-off-by: Srinivas Kandagatla --- 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