From patchwork Thu Oct 24 16:38:28 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 177543 Delivered-To: patch@linaro.org Received: by 2002:ac9:3c86:0:0:0:0:0 with SMTP id w6csp2400122ocf; Thu, 24 Oct 2019 09:38:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqx/HNBWSzYnS+RbXOejLNqO4gFpGZN5IssVfylxYAOG4Nnyqm6DQz3ET8uo2lJW93w3eRIa X-Received: by 2002:a17:906:49d8:: with SMTP id w24mr38628203ejv.264.1571935133529; Thu, 24 Oct 2019 09:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571935133; cv=none; d=google.com; s=arc-20160816; b=iVkGOWv8VEv4g1hzXfnaw6nPDFRt3shGj1zS5apXPY5ddKPdsQy0lcA7d4Sd64Gpph cs5/YyD9VkvTuIhHwWPAmGf25TIBa/PgTZieXci6NtfvXD//tOxlnObd3hq9YIvMGnbZ 0rnvoWF8lXc/0+0rr7u8sJJAhAuJ0zcjxL8mJlof6Nx8UZiiTzBWZlxSyBuOE9x4UY9a fi4uv6Jh1aGfObHt1biP8x+G3dRrHytNbI+v4YV2koy2fkhmx894hH2YOK9EO/ex5cYh GgqpCBO/+Z+5p6vWUz4BvDRBhLtboXSikKWSx8n+MjonQyuYnQPVx5GMt/C6kzCV35tc Uchg== 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 hk1si15321470ejb.408.2019.10.24.09.38.53; Thu, 24 Oct 2019 09:38:53 -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 S2503565AbfJXQit (ORCPT + 26 others); Thu, 24 Oct 2019 12:38:49 -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(-) -- 2.17.1 Reviewed-by: Daniel Thompson 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)