Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3951818ybg; Fri, 25 Oct 2019 11:11:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqzCuU4tHfsZYW0XwGWHuSUbk1Zh1mp/NkqX8zj355jcJmSIkUtYZ5bKgYvQQ0+Sl5z01QXI X-Received: by 2002:a17:906:5381:: with SMTP id g1mr4765629ejo.159.1572027087837; Fri, 25 Oct 2019 11:11:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572027087; cv=none; d=google.com; s=arc-20160816; b=x2VhSELsJOFKdI2Pqfo5DG1wxZVym63YIvlMk8QeNLyvgefxIsXbdS3C5T4fJA632P OzaMYeAf44WvNmwCwFBvl5umbijOmvPvDKnpGg3sdPjW9XvP/qXyt2MK0u9TuefMB7+R 2BwIsN8Vk8jy8MpEVkWkhYFEpTMgN99S4LGXM+E/2mJxVbUqT6PkG0RzBneP9QN9idNr Tfxo4+mc4TNGodIRrU3b+mVnc3soQMkG5/E2eHnwdGmeEu5XFge6ob1kulDhU4WQyQcp wVCTInDWL6X8q8niVjmypU81axeUBbfmx1odyDDvqZXuuQWThR/4uFYIXLQ/AxYtZqyo ndkg== 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=J8DxW1d6v2NWJpBGtpmglXzzbNqCWfH+E3Y1OAoSPDQ=; b=QlWD7FJ24QjdsE9yuw1C48a/OAJoYsUDjI+npGpgJ1IEKZdO1v6mUDgcmKHbSdJgho XJcC5WgBUbmVsUbdtuj+zVwct8H2mJcsMyYOlibsLE2rGhdDFe0s4UYA3gReuqs9VdSr nrp+30JKHoDm9Wu/fayidJp8pGTeYzopxKl1ENYZfTMU3Gwm3jTPtkxxkg7luizXOMUb z/w/MhNShBA68r1590qw472288MvF3zgjDrhIQcFtCjoXJ11r86kD4m+pjBWVCxNh/gZ aE+7+nxNEjuduG7NV4gpub3nxAknyWmn6Cf4ny1xai0E4PhsLDGdtByn7aSt0gJ3eaB9 mtZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=TocT4wWJ; 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 b12si1980192edk.16.2019.10.25.11.11.04; Fri, 25 Oct 2019 11:11:27 -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=TocT4wWJ; 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 S2503561AbfJXQis (ORCPT + 99 others); Thu, 24 Oct 2019 12:38:48 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:41382 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2503532AbfJXQip (ORCPT ); Thu, 24 Oct 2019 12:38:45 -0400 Received: by mail-wr1-f66.google.com with SMTP id p4so26845255wrm.8 for ; Thu, 24 Oct 2019 09:38:43 -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=J8DxW1d6v2NWJpBGtpmglXzzbNqCWfH+E3Y1OAoSPDQ=; b=TocT4wWJl8/oyox28PzGdGFVTCR25Etd7BhP7Qc2cT5lzmEIZQi4tVOoNnf+I+jzVG jH7I9TaqB1wIT4XzmJhJOBEWcNaJ5ICg+n0N50/AVxig+aa7g/rFuKqHScLtkHqD1DAp eh/o1FgmMvGXskWwY+tBnjWvoGtX5TFg3g4wy3Nm/0yL0A2lDLBM7gWPHzm7PYmnZEeB e/QOnIvS51dRheVYG+4wU+2vpucvGzRotxn7/Ub5aur/FiB+/VYXGyqTEAV2Gql4ncro faX5qcVVEkPX+IqaJDgtdfJVRys2rkt+pKna51QOy+7bQEu5rfElCk68o3c1diDOkQen hv1g== 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=J8DxW1d6v2NWJpBGtpmglXzzbNqCWfH+E3Y1OAoSPDQ=; b=d4hbNYkApd7XQMRxEhFl5ES4gf23cMaKQSyQBdXyyUE9dbMgfBL4m2fRiXf5HgAJCC DfQkWW2umsSc4hN89RaCav9+SueFWb+g0fAeI+21s5R7efGooN38lSkvljSbDNoNwLPX u6Re5cZ07Nd8LnmwCKf2svHULoVYrdx/AQfcuSfZckic4o0HbLSotvhjUDHNS+dzaZBj jsuJrcrbX1NvSMEWebOKaeqI4kxFFz8UciQt8FhjR6ay6T0mYhAcC6TMXQUHXWAV0yup zOifkUNXz4uoxkbVaN98L7WG8v6RdqJazkTXSggu565jj2V65AIgbfWMWSPrg4nIAWD4 aDMg== X-Gm-Message-State: APjAAAU8vEl/kwrS6qlL/jPQ1ihQqG6WYGu9l+Va49le8a+Rsi80SaAa YHdCl+qON5MO2OBy5CNZDxgqxA== X-Received: by 2002:adf:8103:: with SMTP id 3mr5023528wrm.194.1571935122686; Thu, 24 Oct 2019 09:38:42 -0700 (PDT) Received: from localhost.localdomain ([95.149.164.99]) by smtp.gmail.com with ESMTPSA id 6sm3446175wmd.36.2019.10.24.09.38.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Oct 2019 09:38:41 -0700 (PDT) From: Lee Jones To: daniel.thompson@linaro.org, arnd@arndb.de, broonie@kernel.org, linus.walleij@linaro.org Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, baohua@kernel.org, stephan@gerhold.net, Lee Jones Subject: [PATCH v3 06/10] x86: olpc-xo1-pm: Remove invocation of MFD's .enable()/.disable() call-backs Date: Thu, 24 Oct 2019 17:38:28 +0100 Message-Id: <20191024163832.31326-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191024163832.31326-1-lee.jones@linaro.org> References: <20191024163832.31326-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 --- arch/x86/platform/olpc/olpc-xo1-pm.c | 8 -------- 1 file changed, 8 deletions(-) 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) -- 2.17.1