Received: by 10.192.165.148 with SMTP id m20csp2812892imm; Sun, 22 Apr 2018 16:13:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx49lVYv6lKARwPEjpOdGLs4nDrmlHdIt4+fvHATpgVl7wamDRrBMAP/kL6QaBNBaDUasnBUD X-Received: by 10.101.76.207 with SMTP id n15mr15558083pgt.313.1524438827333; Sun, 22 Apr 2018 16:13:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524438827; cv=none; d=google.com; s=arc-20160816; b=jC/UIXLMyc44x7o9oZ0xMfMyhvbSsMs7c2ws949KLEd0HCGQbW0+RE7Hk68GD3Ky3F yVDKwJx47nOm6VehAJuqG77Log8XlDrPfVGGzbcG2iModz3GnA4GeiyWbaDOq3QeFCH1 A+VdkB2fil922ITH8y+i4zXDmrUwOf/CcCVDDqhFxmRteOvpLfum4DCTHJtjL9walrul T1cwU95Bs6A8mMD+HbUgpMfjE2Zhxv9vUDQ+s4ilVEcGz8nyv7iHj2cqRKE2JZTJc+Zd DDpiXf3tUQDTMh5NH4ZyrmaXbtdlkgjhu5wB0zK1Swp7hjD6A7UWil/8A1PwCS1tx9eT FSkA== 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=nqpo6sX0t8t7ihlPS/9UTfM9SxmT7RqdKY9o7uxx9gE=; b=SYAKXt0ozoaf8XBEFw0JyFBaKX9iiC5tBsSdiHmbn9qIETWNH1MiJSbt4oEhMbzuqY 8QWHPy4L354I6atVFeTaseg5g5erCA3qXxM2t4p293BZQL81F0hBBuxJuq65dOuTud23 4VEDOU1oho7zR1joBdtLxTtKs1CxHqZk2ENkFCfUwY3mxyyyHwp6eASezCH7FGkAXgYa p9yRlMVpAV9ZhLGSA4dKoGnB++zKiBIT2VbADFLQTpG93TCnY/ytUY3PutZ2X1iXh3PV eztlD0NDW/QffSKTdc0E4dDgVLuM9EMBPXefbWXdKQPoXeu8Y5xm/YJRUVfXYxOYo9SA Wl5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Rk3y/rOj; 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 f13si8936881pgr.143.2018.04.22.16.13.33; Sun, 22 Apr 2018 16:13:47 -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=Rk3y/rOj; 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 S1753892AbeDVXKS (ORCPT + 99 others); Sun, 22 Apr 2018 19:10:18 -0400 Received: from mail-lf0-f65.google.com ([209.85.215.65]:36814 "EHLO mail-lf0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753847AbeDVXKM (ORCPT ); Sun, 22 Apr 2018 19:10:12 -0400 Received: by mail-lf0-f65.google.com with SMTP id d20-v6so12235058lfe.3 for ; Sun, 22 Apr 2018 16:10:12 -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=nqpo6sX0t8t7ihlPS/9UTfM9SxmT7RqdKY9o7uxx9gE=; b=Rk3y/rOjwur19w7Rd757YdKsfFBRqnksKUwhZ5jv9RvtV7m+pdfFejbdqZ2iTAwFlx ryRTFZhCI+lKyw6/FwjxjmybQoA0y20qUs08J5A4w9YTAIu7N+PWrGh44KQZePlfusip 0lnGQks7ALoaCUWKl9iERnlgPqTCFQ8UOmpfg= 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=nqpo6sX0t8t7ihlPS/9UTfM9SxmT7RqdKY9o7uxx9gE=; b=eU1ryAQaLt4LGDHXpqm52bx/cH18rXvhcsu4HkjwPU63Yl5ezMdSHO+S2LoN8/us2/ 7zq3TaMxDIqlXyoEARmf62oXf/Ia45VF0Jz264+cCNDsTBBNG4QdIlGHZfUu2wTAlhlk QrtKZvquOqUWWJTGXtGDY+Z3muTv8jlF0WEcKcD3kXG8HKDGj6+Tom7dBsenoSujuTE4 WK/6YyxpJb9UuO4UicWYaicM6KkLsKQ+SY9pwotPUIj01C6OIyJZUJ8JxylSD29yEHEP qX9iMFnsb3meR0YpVvA9JBVPZ2MjUj+J+I+ieSdjkCUEcjEK/AMZHPBflmmb7TvR2uzp QtYA== X-Gm-Message-State: ALQs6tDrRtUjFyYrHQySTnG4V8ZyQXMSgbWIwNddNE3mdinJyxMBsBw8 dMCJdxbMLG3kYhrCSxkoWCl5SQ== X-Received: by 10.46.144.3 with SMTP id h3mr11576568ljg.37.1524438611435; Sun, 22 Apr 2018 16:10:11 -0700 (PDT) Received: from localhost.localdomain (c-ae7b71d5.014-348-6c756e10.cust.bredbandsbolaget.se. [213.113.123.174]) by smtp.gmail.com with ESMTPSA id r25sm2036291ljc.8.2018.04.22.16.10.10 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 22 Apr 2018 16:10:10 -0700 (PDT) From: Linus Walleij To: Liam Girdwood , Mark Brown Cc: linux-kernel@vger.kernel.org, Linus Walleij Subject: [PATCH 09/18 v2] regulator: pfuze100: Delete reference to ena_gpio Date: Mon, 23 Apr 2018 01:07:33 +0200 Message-Id: <20180422230742.3729-9-linus.walleij@linaro.org> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180422230742.3729-1-linus.walleij@linaro.org> References: <20180422230742.3729-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 v1->v2: - Rebase the patch on the other changes. --- drivers/regulator/pfuze100-regulator.c | 1 - 1 file changed, 1 deletion(-) 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); -- 2.14.3