Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9124052pxu; Mon, 28 Dec 2020 07:12:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJzT8mMsSnqFOOiuesSZMXnd1ghAvtjM4aCqNxQyggxY7uT0P36cwfTODYzcniPPgM9NOmt/ X-Received: by 2002:aa7:d94e:: with SMTP id l14mr42280936eds.98.1609168366068; Mon, 28 Dec 2020 07:12:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609168366; cv=none; d=google.com; s=arc-20160816; b=rG/OizAY1UUgtnX9f7TfYBhXOWk34W5b8dHPKXrY6qXD4JnRuEspwkWJsWTjVQjMO1 AzM8L/nj1YkF0YS6zmMkdzFqq0/iNpx9kEeXkdPCU5vOUgiUAspeR94jQatcCFIx5Rf5 ADvPNwAqgmV2RztYK6oPB3fsoIauVn1JN0V/1oG1dBHYP+ioY5asScW6pqjRKdE3rxlJ TB0p22uL37MaXtfeEgOs/dvyTdrhbHpVGP933ZRO5tsFSznXlFduXAyI5mapYChEuPd3 hm6ir7k8WUcA4fJPdHwf5vZErvv0DPAHxbtAg7RNHgMFdav84b0yHgH6rBeu33ro/YF2 tiJw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=PSuwA+7G7EK0Lp5IUGMONsNGdJZvYbT1OXPm0BxOOec=; b=kKGAkuWuf6khQM8dNvlmpxNBj+dwZrn63hQFEQRgHqdwFdMM4YMZF/VLoD8AD3EUuq MTc8J4PtLC6Mq8lXHP+cRJ7+yT7Hnc8Y61wQx6kKumzxqV5jjZfxcQO3ri7U4lm0wT/C r0LhPmY6QPeahOv8HFBfzie5n23uu59y63OPWEWpu2A3LCGEs7rKeUDYx3XOv92Rm0/j FcUacDjuuCD3gwkpTz7DqoDR5MZaxeHwoA0C4FoQNeGPo74C2o05wJOqM11TJn++1Uas jmElddWVSS5pNgpCEPzCJzBdZ7I8TyVHLMaEC1roaHWTYdZfJlwYVGYdRftDAESqJ5jS fY2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jBlKzKZg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o59si20218463edd.460.2020.12.28.07.12.18; Mon, 28 Dec 2020 07:12:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=jBlKzKZg; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2440264AbgL1PIl (ORCPT + 99 others); Mon, 28 Dec 2020 10:08:41 -0500 Received: from mail.kernel.org ([198.145.29.99]:41714 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2438635AbgL1OIR (ORCPT ); Mon, 28 Dec 2020 09:08:17 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 23EA8206D8; Mon, 28 Dec 2020 14:08:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164481; bh=ZqUsvu8KzQ1vUMlvBPlC52wtDRcvm2/ghO01IpU3amc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jBlKzKZgcVsd126u7/Xe2/UfjqZxiByjQzK4xez4Ex3i8bUTOxSpjiWeBMURo2ajz vYfSd4PhHJ9/B9yCWeSfMEFONNTDbp1SRz7WDv32PW/CRDrfgvkOl2D4uDiU2l8Q65 JV8hil4HRDvELtZcb/qU7k28skyeWgCW3eTfpxHk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Zhihao Cheng , Ulf Hansson , Sasha Levin Subject: [PATCH 5.10 195/717] mmc: pxamci: Fix error return code in pxamci_probe Date: Mon, 28 Dec 2020 13:43:13 +0100 Message-Id: <20201228125030.309885938@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Zhihao Cheng [ Upstream commit d7b819b5d33869d41bdaa427aeb98ae24c57a38b ] Fix to return the error code from devm_gpiod_get_optional() instaed of 0 in pxamci_probe(). Fixes: f54005b508b9a9d9c ("mmc: pxa: Use GPIO descriptor for power") Reported-by: Hulk Robot Signed-off-by: Zhihao Cheng Link: https://lore.kernel.org/r/20201121021431.3168506-1-chengzhihao1@huawei.com Signed-off-by: Ulf Hansson Signed-off-by: Sasha Levin --- drivers/mmc/host/pxamci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index 29f6180a00363..316393c694d7a 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -731,6 +731,7 @@ static int pxamci_probe(struct platform_device *pdev) host->power = devm_gpiod_get_optional(dev, "power", GPIOD_OUT_LOW); if (IS_ERR(host->power)) { + ret = PTR_ERR(host->power); dev_err(dev, "Failed requesting gpio_power\n"); goto out; } -- 2.27.0