From patchwork Tue Jun 4 08:14:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "\(Exiting\) Baolin Wang" X-Patchwork-Id: 165709 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp5522982ili; Tue, 4 Jun 2019 01:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxFSALpZrjYExnDDIcq7CFB2cxoaemhUx0kv3s/a5VjF6fwl5wAsEb9s2+GJ6DEDRqVML31 X-Received: by 2002:a17:902:9a06:: with SMTP id v6mr18595485plp.71.1559636094759; Tue, 04 Jun 2019 01:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559636094; cv=none; d=google.com; s=arc-20160816; b=CJsoXfc6pGApezIBkgTXceR+tIm0j2HgjVf1WQmCU7YFn9JCF8oFUCKCQ1+EWArffn sxNZ2Gxm4Cs5rLy5fVXRgZfCA/sakJdlhmAWmtNkY/gqqNHMWXnQAkktAHRh3/R+CAv7 pfa9eE2Uw0tMqje/UCglRvEO36bUeKfuBamVAfCHm3fQxpylntg/OknXisgqMfC95/J5 A2OgoVrC4bZp5d75PwNnt9FSmPrGug4kcXQKwgYyOowGQBwj5nLMHGUDq5vn/G3iABBC 2VcZR8lyjYeRrD+Q0cQ0SGDv5zYvrWnAkBo5hxVY3LoLUjfMItZI2avB0PP09wyhKOA+ SQfg== 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=nq43qEPUyforrp2Nl2WYAJ4AmxJ8ebezDI4XtWsQ3xSK6Ahrv5ld62pU5zR9r9AU78 FpFzgNnQO8/EzwxdXvdI+rjo90x0feZmvD+1Hq0vKaNo0mOrYKbik3sPeRcfpGQMSz+a AxNk3GY2ethEHjdFYXS3q174wFDath13XvE6XRNrUTg7P0uKfRrQGiLCz/USuoiUeUVy jeUlmYCyoj32LlM5BwtS3igZxzzyGwIVR0dSinmXtSMwKurn/Ia7QknW4BOpJTBtRQ6L qRiSsrCzJ4oe1ggWx47j/YbfUxV+Rq+pLvFPEtzS+Mvf3fqs1dsHBuO03iXplowxWU5b STdQ== 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 e96si22887822plb.123.2019.06.04.01.14.54; Tue, 04 Jun 2019 01:14:54 -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; 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 devicetree-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=devicetree-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 S1726980AbfFDIOy (ORCPT + 7 others); Tue, 4 Jun 2019 04:14:54 -0400 Received: from mail-pf1-f196.google.com ([209.85.210.196]:45711 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726964AbfFDIOx (ORCPT ); Tue, 4 Jun 2019 04:14:53 -0400 Received: by mail-pf1-f196.google.com with SMTP id s11so12198490pfm.12 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=Nn9/Sj3q7zZ/cPxf082BrE/VVALygHEb3BUVLSmr7+qgA+YPh4fVSB6bVnawyDLkF2 MK6FI8yPLu7yN6r4G263N81f0bS2dEEXFX8M0jspPj7h7bIibLF0h8/cZLwEweB7G5Yw DfsNPyi9+ffa32acwq+efJcs3Ldn4sQSvWfIwd8vAIaw1BC8bbgxlUzif7VokU1pEJAI Zt+982ozNyh4LX2y50mfWSYKiyRV7OLvq6tbexJwedaa6ZCXXGcWRf5x9sizLS5CExvL JhSto8tHUYFc47+owGQ6qOhLxMrqmnk+9OuFOgiVTY3KVdflrWnltOVWpXnpyyvRY7Yo WnFg== X-Gm-Message-State: APjAAAWIzMd0jBSEFRoqma3CdznTp0uWywOpHR7EUV1NP861ZaBPw3mu cmeQlJa3f+YjXLp+ti6kBfgoSQbmazhkPg== 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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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(-) -- 1.7.9.5 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;