From patchwork Fri Nov 1 07:45:15 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 178253 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp116803ill; Fri, 1 Nov 2019 00:45:38 -0700 (PDT) X-Google-Smtp-Source: APXvYqwD+k8gdx0rq8FNhxVCt8LdEhk8DoFIv37ltoUvUcpByFYRfiqHwxXImOHXKj8Mj56QySrW X-Received: by 2002:a17:906:858d:: with SMTP id v13mr8135518ejx.61.1572594338119; Fri, 01 Nov 2019 00:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572594338; cv=none; d=google.com; s=arc-20160816; b=iopITETT//1Nui5e9MXZdWbCXXTBAGwTbd2qbUXnb3wKk7r1bilKHyo9MJrc6J+V0/ gktgUy3kH1CbeJaCZAjt3TwyR5ZezAIBRwvZmEc2Q6jPDGWtq7i9hCEnHrY/mawEy3ML 4EFiA3cw02A71Kb8eR2nWGvqrVlBfjgNIHYAbpjGO0zH+Frv8Xe5lx8mYJMnU5fv26Dr 2mi7/OKbv+MfezJNGFjJMQ6ssjXtk2dHshIVfTVPFfAhLqsZg3fwd//+mnOEwGNaP12U H1j6mwrki1CKkLJ1Hn7b69yfkc9VD+N3CW22DuziMGC/2WqKHjOm1RttuekrI4fCNX36 D1lQ== 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; bh=I+jRYJ+sv8PSuO5nB4vni872MPFD94JrjqUMD7lrsKg=; b=Lc6lkbFfMUUB0W8oa12M7fvu64Ax+JfKMgcu4nu2ZPZ26eYk0Nl3BgorWChA6Mtavs B1cab26+kpJja0RWLhzfqxxVJaYBxSurN14u5rT9W5Xb0uvX11ujl7QVsPe8EcPEt4a7 Diy4ikw2gNnk3Tvw/y5G2LHuP5Pu14c51aGSk3//ujed/xwBn1FfaYdbGsa3UVKiCEkT D26TeieRgDS1VJIeTVKzOB719cWglTf9GKwXCgf6ot6SoUAtyQuuXWSeazHrkXkD3S8D 6R8XqjmlqE7yI9f3xO95xHbURlOAOUQQsGg3Bk0uDXmk4Z/EwnXXYgNEWTSwbMVEqjCJ CHTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=SWoRZn1T; 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 d10si5362544ejb.54.2019.11.01.00.45.37; Fri, 01 Nov 2019 00:45: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=SWoRZn1T; 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 S1730150AbfKAHph (ORCPT + 26 others); Fri, 1 Nov 2019 03:45:37 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:38732 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730124AbfKAHpb (ORCPT ); Fri, 1 Nov 2019 03:45:31 -0400 Received: by mail-wr1-f65.google.com with SMTP id v9so8814090wrq.5 for ; Fri, 01 Nov 2019 00:45:30 -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=I+jRYJ+sv8PSuO5nB4vni872MPFD94JrjqUMD7lrsKg=; b=SWoRZn1TJzuIfLyY1vbC2tQKk7pxk2GocVuGBSqprOkpeT/3QhldJootnOYUFiUoCW gffwSB1PUQOvQUhc2IycslRcwMVtl0OGCyKY0JVj/7TY2tCwLsJ7NLKuo6qX/6e99LH+ EpUyQKZrmnfU0fxcYD5J8438Ap+OkYn1pfEIt4AwNc+nu+Q+JDNuETpOqdH/IO3Frftf AX0sEGoxCggCDq9ru0P8HsrzgbWjCYKktoN/oIUKG9DUzGDxeiSFH565yAseyidSK+s4 MdmyH8jZckm8ulA1RFijtPeSaxbpDU+Kk56RJq5tAF/riUxZchUB1MBrz1uJdPhjr6wh e+cg== 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=I+jRYJ+sv8PSuO5nB4vni872MPFD94JrjqUMD7lrsKg=; b=Rm2eU2wifrgp5mQd6MnY9c7P9I6V/Sr3jw4HbKwIMTJct9jDRlDwCcusb5EpamsgBN 6g8SiNJIL+HOMD3ixKlWqCXhZnnIaG1gBARtWRh5NHJiiSNL4NwAF2Nbfn2zGpyshJS6 sAzIxt9LUY3lpgwcl0LJOiIwLyEGesTpoGMRy/8QBq8JN207XV5/gqN1ZOdywprK28B9 OdJvcKna7St45a8jgIFlfrfw6Y2dzj/V+uZ7I68WN1PkytxidF4ugf/Jattpl34N+3mX 52OxH9jiNwLihfIi9TB8PvFkh7bt1AKhh4L+zd5o6mNgojMD1asceQM2GvwkC7bxIbPg PZ+g== X-Gm-Message-State: APjAAAVccwQghCDWcSHeZoPNOeLSw31+SFTIOLlYfWVlJXHj0/fGQJqi bB7dtM+ALXQx7fNWmsKRBoAV3Q== X-Received: by 2002:adf:9dca:: with SMTP id q10mr9394442wre.183.1572594329634; Fri, 01 Nov 2019 00:45:29 -0700 (PDT) Received: from localhost.localdomain ([2.31.163.64]) by smtp.gmail.com with ESMTPSA id b1sm576215wrw.77.2019.11.01.00.45.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 01 Nov 2019 00:45:29 -0700 (PDT) From: Lee Jones To: daniel.thompson@linaro.org, broonie@kernel.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, arnd@arndb.de, linus.walleij@linaro.org, baohua@kernel.org, stephan@gerhold.net, Lee Jones Subject: [PATCH v4 07/10] x86: olpc-xo1-pm: Remove invocation of MFD's .enable()/.disable() call-backs Date: Fri, 1 Nov 2019 07:45:15 +0000 Message-Id: <20191101074518.26228-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191101074518.26228-1-lee.jones@linaro.org> References: <20191101074518.26228-1-lee.jones@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IO regions are now requested and released by this device's parent. Signed-off-by: Lee Jones Reviewed-by: Daniel Thompson --- arch/x86/platform/olpc/olpc-xo1-pm.c | 8 -------- 1 file changed, 8 deletions(-) -- 2.17.1 diff --git a/arch/x86/platform/olpc/olpc-xo1-pm.c b/arch/x86/platform/olpc/olpc-xo1-pm.c index e1a32062a375..f067ac780ba7 100644 --- a/arch/x86/platform/olpc/olpc-xo1-pm.c +++ b/arch/x86/platform/olpc/olpc-xo1-pm.c @@ -12,7 +12,6 @@ #include #include #include -#include #include #include @@ -120,16 +119,11 @@ static const struct platform_suspend_ops xo1_suspend_ops = { static int xo1_pm_probe(struct platform_device *pdev) { struct resource *res; - int err; /* don't run on non-XOs */ if (!machine_is_olpc()) return -ENODEV; - err = mfd_cell_enable(pdev); - if (err) - return err; - res = platform_get_resource(pdev, IORESOURCE_IO, 0); if (!res) { dev_err(&pdev->dev, "can't fetch device resource info\n"); @@ -152,8 +146,6 @@ static int xo1_pm_probe(struct platform_device *pdev) static int xo1_pm_remove(struct platform_device *pdev) { - mfd_cell_disable(pdev); - if (strcmp(pdev->name, "cs5535-pms") == 0) pms_base = 0; else if (strcmp(pdev->name, "olpc-xo1-pm-acpi") == 0)