Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp5115360ybi; Tue, 4 Jun 2019 01:17:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqw9xT8GKQsJt37kA6/bBfcJ6z7DmLBsrw4KYWUv6o1HhvLHg7Iu9gnaEi3W9vO8vMl6NFcO X-Received: by 2002:a17:902:6b03:: with SMTP id o3mr34901974plk.85.1559636258583; Tue, 04 Jun 2019 01:17:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559636258; cv=none; d=google.com; s=arc-20160816; b=h8pkmcjPHclD5LV4Eeoq5e4N4HR6M3p6kW5n4PEK6FoOiv5CzXWSr7X7FWZ6F1qVT1 9yOu3vZ3GbnIMLs33g9JCQYxLKAxkWh2k2m1PU/mb1jS4qPBvSc2WM6IteGmNeDDZCPK XP2YXLKzOsOqWlHiH9tijOCQvuNL4yL3ONu//hZBZkzDqUqBfSMNPMPGUGeEZuRC+AX3 skFcty5vihhvgU0o1aFX7C/zZYAlHnaOD+z12rGzRFK9JVVgLgycvv+cugGMH49Su0DV x1yQ6/yef3H4iqIF+34Fv3uV+1tYR4MbikuiX+1NwSZO8tFlZfygQa+Zb+RdFIiCY0Yq uyZA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=tvMJ5s9gExvOA7lMPut++cP3zHcPvryLWLVuc4mHs3M=; b=nzz+a7J4C+njR6RyGf/skPK46YIoQP8xf/c23Tpil44g5WPc/ei2CI5bcuK5+9kTTe R4z7cfKYNLMU+13wLD2WPG2aZugEaiZ46lGgNCp5EPbkRuvFzyfS1O4e4VCSI+2U0PJd ncYIRtqkukvqfpZM+QKGyBwqipIbit57FGlfBhD3NlvUUJdraJSyGAAiV0Nl6GnV0syS G3PUoB9Rt5e0lRJQAbmaFw+Vg3x0AuTJe5MUBnW3IVdNzVLHcxEWFCVdN7twr5QgfI9q 0bCCNMNWvGibJn0fYBcE4eHORSW/SQrtyWOqAOyjso8ZhUgOD4P/gpABoZUzvt4UuxiC r7tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KvCoOxV2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si1942784pld.301.2019.06.04.01.17.23; Tue, 04 Jun 2019 01:17:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KvCoOxV2; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727003AbfFDIOy (ORCPT + 99 others); Tue, 4 Jun 2019 04:14:54 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:43838 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726795AbfFDIOx (ORCPT ); Tue, 4 Jun 2019 04:14:53 -0400 Received: by mail-pf1-f196.google.com with SMTP id i189so211523pfg.10 for ; Tue, 04 Jun 2019 01:14:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=tvMJ5s9gExvOA7lMPut++cP3zHcPvryLWLVuc4mHs3M=; b=KvCoOxV2rRHo0LP8pHEGJKzTvkI2+KlTgGiFKUOXH1jmu0LkQFTIONu+GiJg50suqZ JdNVybOqlsfUGfx1mhiI2TS+zH2KLWFXdBS3LLxm8xLhFU3eGNeI6zNvWmmqeWjytp5Y 42gcvY0eJ1ul3Rn/5joOnaJZP7ozr6Y7K59xNy9vWZpUXARufZCxqXgNfpJzx/8WS7H3 NwWpPhg4ROVRzKll5FlPSOfHhuB26wbtju1fX9bkRpOkQgecgke3eOQmCZZnsJ0x/XOM SUjWi2fXYc2UWco7WrnJfyA9cyRnPH5v8KnKBromZG8cE2HtOS758i5ajacD+nXKM/QQ 6zSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=tvMJ5s9gExvOA7lMPut++cP3zHcPvryLWLVuc4mHs3M=; b=QCRi32rzi16jmeTSOpmetbViJd6dildAqSvk7A/Sa1S/T9ScjZtISWrpPkd3TTN3o0 YS7hrr8A0j0nMJsyeZWo7TKH3uZZuRuHJLsidD+yOrBkSqPsf1qeLA7STESxbv3PD8qB WyXrH0XkWFYrTXcTmn8Z912nxh7d9EXRVx2EVxZOGpoaosU7Og4cjo9TU90TrxHKkd6x 9IfzVpXdCdrKhwp2Uo8mfinYTIkgc4OvZOy91rfWeVCUdyOJmC306VanDOUiMeLWZozp 3NrnLDPMHnCDfaH7/3u02W/zo5jVA1Xxx0JrEN28uHJ7vKaBy4EvIdt/8H36o06qcb0n ACYQ== X-Gm-Message-State: APjAAAXRQeFvwm6Yq0D4hpW0ZFzWIWVAiI9F1jUVROg64MBG37BqjoqD iCFHXhBOLMWxUL7inIbj5Wo8iA== X-Received: by 2002:aa7:8ece:: with SMTP id b14mr27207253pfr.244.1559636093172; Tue, 04 Jun 2019 01:14:53 -0700 (PDT) Received: from baolinwangubtpc.spreadtrum.com ([117.18.48.82]) by smtp.gmail.com with ESMTPSA id j4sm14818804pgc.56.2019.06.04.01.14.48 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 04 Jun 2019 01:14:52 -0700 (PDT) From: Baolin Wang To: adrian.hunter@intel.com, ulf.hansson@linaro.org, zhang.lyra@gmail.com, orsonzhai@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, arnd@arndb.de, olof@lixom.net Cc: baolin.wang@linaro.org, vincent.guittot@linaro.org, arm@kernel.org, linux-arm-kernel@lists.infradead.org, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH v2 1/9] mmc: sdhci-sprd: Check the enable clock's return value correctly Date: Tue, 4 Jun 2019 16:14:21 +0800 Message-Id: <9c76f06c8ba1762c9706f2c20878bf39d46370dc.1559635435.git.baolin.wang@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Missed to check the enable clock's return value, fix it. Signed-off-by: Baolin Wang Acked-by: Adrian Hunter --- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mmc/host/sdhci-sprd.c b/drivers/mmc/host/sdhci-sprd.c index 9a822e2..e741491 100644 --- a/drivers/mmc/host/sdhci-sprd.c +++ b/drivers/mmc/host/sdhci-sprd.c @@ -368,7 +368,7 @@ static int sdhci_sprd_probe(struct platform_device *pdev) if (ret) goto pltfm_free; - clk_prepare_enable(sprd_host->clk_enable); + ret = clk_prepare_enable(sprd_host->clk_enable); if (ret) goto clk_disable; -- 1.7.9.5