From patchwork Mon May 14 08:06:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 135678 Delivered-To: patch@linaro.org Received: by 2002:a2e:9706:0:0:0:0:0 with SMTP id r6-v6csp1441268lji; Mon, 14 May 2018 01:09:14 -0700 (PDT) X-Google-Smtp-Source: AB8JxZq9Zt1Ll2RylHkdaZBuQtjSRiaQjDDqDBLiD8c/4cPkkZ3f/BR3s4vhIEBe2B7sW0m3ldjD X-Received: by 2002:a62:7002:: with SMTP id l2-v6mr9475154pfc.40.1526285353980; Mon, 14 May 2018 01:09:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526285353; cv=none; d=google.com; s=arc-20160816; b=ruX/d0JpoB85/syXM4ytoAPuXEyRFNjGyqAg3SqK9nl54aOwOZBK17IWNsKUrYYj5u 00FbCSrNS3J0LawIOJeI7Oyw/wmGQCOuYhYuuVlcubmrzl8IBFTmG6ZBvgkO42sq3i+h I5fwqtGxI/3IoPj6Ds4p2QnyxK2npW7UAs7b1vNRHWJSdGBviKdObNNtlfzNCEgEZF49 clkLxNQbnAF4QadttVDITefG/rS/wf9RHwWwlVxkjaCW/vH/Zj5LOxS0fD3lJoDpG3HZ gH7O3BM5DrxCBLriuAZH/t+rVtV+bExiTxRYxOAuNLbTbe2q7S2PtZhhctfNHGayznMx 7wBA== 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:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=n+mwPjgvTiqsvab6ujwt53MLo9UqrXzOtUygt62N/1E=; b=Gpy1Hbv6LjU8qA8I2xcYKAmxaywbvVKEiDTL3UYomI/3yoQLMBNrLhf3QgnC5ZQs6c M2Y1mzwybEXQybTGz8UUJPl6amZwdYe+w1bDEDhtj1T2uHRyVKRaksoVy5mAt83dvF30 DKNhGuKuP16qvlKAoj7Kf4+X518/1MvBlNjL60CISbOZ6t4jJnrU2dk0treEhCZ1Iodq LX3410J2iHvXy8EFVLw6eU0atpxmJu58zxArChS6BzNi0T6RRfH9Hiz92RKwAAWIceiu wNVOKG1VEd0SqryfnY2jji9J7PpOkjrKceJBOYFcqfHVPMT3Mxa6AB3xpVi/rhqzx/9L Tpfg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dLQ1MTbB; 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 p67-v6si8815667pfp.72.2018.05.14.01.09.13; Mon, 14 May 2018 01:09:13 -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=dLQ1MTbB; 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 S1752318AbeENIHX (ORCPT + 29 others); Mon, 14 May 2018 04:07:23 -0400 Received: from mail-lf0-f68.google.com ([209.85.215.68]:36052 "EHLO mail-lf0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752212AbeENIHH (ORCPT ); Mon, 14 May 2018 04:07:07 -0400 Received: by mail-lf0-f68.google.com with SMTP id t129-v6so16536719lff.3 for ; Mon, 14 May 2018 01:07:07 -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; bh=n+mwPjgvTiqsvab6ujwt53MLo9UqrXzOtUygt62N/1E=; b=dLQ1MTbB2aFiv/xRDF/L3VWSR2uLF0ecuEcj39Bf2/Nc9jkzVQ+nud5a6AytDxPVCe nxHWrFzIxPz1Gcn0AWykc3y6YxiiBhr/EXvENUY9ACCGiJp9NeuDmsQGw4L+koHgRp8f 9yUgjN/UJycktwhpQ/nqzJfXkso17wSG89W5g= 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; bh=n+mwPjgvTiqsvab6ujwt53MLo9UqrXzOtUygt62N/1E=; b=pcxmhFa0E1Tr3HgRaHFEhuag2NdEbg8mooA5xK2im6PO/9QgjquVeMV2MnK6BY7GwG R3dS8FNjNxVfJs1k/iHPjCWpbgU3G3AYaYU1jMl4P8GY7lTF7grCG4BA3kHjABxIjbXc XfQlSiGTNSOzs0O+Rk+iLsAQ07JSTWuW6LGyuOFTjjsGjiB4PXniAPZI3JY+HlXKTGjE cpYRgh4Jtqlgp/QEmzGH7yWYa8yui0JZ8BDNCEAYoUjWeFfF4XekCi82bDaFC00NXb2V df5W4/0ejWafxkikmQYUHoSNtLMMLuX/dMOzQ3VCmO92rz+N/0lsva6CVFi+qwJsKhAB Zzdg== X-Gm-Message-State: ALKqPweAMEzO2IyF+bj7v0P+O6bQ2CeNPAYG3DPqC9lE4RSJuNWDj+uj B842/o6MmGN+9ldFz60osk+iYA== X-Received: by 2002:a19:4310:: with SMTP id q16-v6mr7665589lfa.74.1526285226578; Mon, 14 May 2018 01:07:06 -0700 (PDT) Received: from genomnajs.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id s4-v6sm1725265ljh.9.2018.05.14.01.07.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 May 2018 01:07:05 -0700 (PDT) From: Linus Walleij To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 09/19 v3] regulator: pfuze100: Delete reference to ena_gpio Date: Mon, 14 May 2018 10:06:30 +0200 Message-Id: <20180514080640.12515-10-linus.walleij@linaro.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180514080640.12515-1-linus.walleij@linaro.org> References: <20180514080640.12515-1-linus.walleij@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We now pass a GPIO descriptor to the core instead of a global GPIO number, if this descriptor is NULL the GPIO line is not used. Just delete the assignment of an invalid GPIO line. Signed-off-by: Linus Walleij --- ChangeLog v2->v3: - Resending. ChangeLog v1->v2: - Rebase the patch on the other changes. --- drivers/regulator/pfuze100-regulator.c | 1 - 1 file changed, 1 deletion(-) -- 2.17.0 diff --git a/drivers/regulator/pfuze100-regulator.c b/drivers/regulator/pfuze100-regulator.c index 63922a2167e5..f341d9614a77 100644 --- a/drivers/regulator/pfuze100-regulator.c +++ b/drivers/regulator/pfuze100-regulator.c @@ -648,7 +648,6 @@ static int pfuze100_regulator_probe(struct i2c_client *client, config.init_data = init_data; config.driver_data = pfuze_chip; config.of_node = match_of_node(i); - config.ena_gpio = -EINVAL; pfuze_chip->regulators[i] = devm_regulator_register(&client->dev, desc, &config);