From patchwork Mon Oct 21 10:58:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 177065 Delivered-To: patch@linaro.org Received: by 2002:a92:409a:0:0:0:0:0 with SMTP id d26csp3245601ill; Mon, 21 Oct 2019 03:58:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwMIZmul7OWOJMlN3BLj7G2Vy/NuDXGOjInBD4akzWOEEs50N3oEKfyG6bKVbiP+EdlOfr2 X-Received: by 2002:a17:906:6882:: with SMTP id n2mr21802317ejr.48.1571655533251; Mon, 21 Oct 2019 03:58:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571655533; cv=none; d=google.com; s=arc-20160816; b=kqHUiDFCJMIoOh9vLOZ2nov5Z4fGDotCYmTEL75BNwg7WtkcVk6MfzbeMS/Vc8vsmD WJ95FKPQ4WFPNrgOInTJIjTfhIzxS4BeU7+oINjxQqLJbaN0sNfnTarQ0OFnt1UKRfRi TeUppL3daxJPMNUK8zYDjYTiXiwBREc0JwmO/rnJVI3Hl+STV5+XfPmU/INIZkzPEp9a Ko48EjlxR+/etnLaW0DaRRIjZNaKnM6XZ2yiz9Uv5TwGUSI/x6IkvaJw41BMOZeX2Ftx 0WL9aRfptAtuu5d3tBo3DcLcJopMtAN+7FfjK9p7DqG9Vi56ASes3GV+4Oles2xCDCjy p0WQ== 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=N1QWSWmQ9Z196IzSFBZAn5l+uyQZbYxA5PcE8j0aOpM=; b=ywsPIGnMb1ut341JrHqyTZq8SC/z0ZOFDUiw9SDOWeLUsRA8+KyMRdybhyRZHU2CAw 404XhPudnHiie57LsrBFbQkZ0xiGaiQiDsJs0Eov4Ro39jtpSiNvJ5n6j3y6m7oROEdS tizw3vZW+PVJ/NGnXrRa4Eza2BN+4BpnsxZMTuF7h2n6t5QZfSZAg4PsFU1Mp9Dc61Sx DMc+kndXKvBZ/yPBA2XpGR7LKeYGfyOaFnDLuU8rCV5RaWLJZnXQwkrQ0q7q+sRnZeFE HbUJFx5U3wzv6hZ6zw+smo3pVkNGNiJ43P/AXMs1BvnABAF6svyoHfF5y0sQYjDvSuYD uIwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=iVJ355dx; 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 nj7si8643743ejb.262.2019.10.21.03.58.52; Mon, 21 Oct 2019 03:58: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=iVJ355dx; 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 S1728412AbfJUK6s (ORCPT + 26 others); Mon, 21 Oct 2019 06:58:48 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:41164 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728313AbfJUK6d (ORCPT ); Mon, 21 Oct 2019 06:58:33 -0400 Received: by mail-wr1-f65.google.com with SMTP id p4so13409450wrm.8 for ; Mon, 21 Oct 2019 03:58:32 -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=N1QWSWmQ9Z196IzSFBZAn5l+uyQZbYxA5PcE8j0aOpM=; b=iVJ355dx/uAdqxNtz28IemMGbVKdAZvYRt4leY2T4v9S/sVKuTNbBWEXGYb7MZQCCX bEMWit0rElAZ3UzowGiYzAR4vfkkAmBx3y8kVbey82j9a06PIQ6GTbSiUzbDTjIsE+Bv 2ZMWAnxzQUrV7IilCxBkdlNYVRT+P5Ws2aMb8Zu935IT1F4HYuuIDnRI4O7xVZ+L2d57 ff6UR1t6nLVlBSenVOD5qWq2MDiCJuJvhJEZSVaCHLRxc7WD/mjIKPB2RloQse8mdFef WDnRAh1VS5BhGhAG1h3QykJIzwhm38VrNRNRsL76fsaSmdR/HU5o619gIDhf5FzS5WaF kkvQ== 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=N1QWSWmQ9Z196IzSFBZAn5l+uyQZbYxA5PcE8j0aOpM=; b=HRngjDSW7y80ut7Arq9/XExDp52GELQgNuKLoli5ugXfpnAO01GSRZFz+xvZItXGuX D9eSbQnf2QBVPNJ9XyPVuxtFuTv5VKdU0E7M2TDAAw9AHO1Fm+MI91uZr47k5aQ22EIX +4Jt5/VnTqYDclDgN/mrGEjQ/kHsULzmBCKVPrwptNGe6YU/Onc5aS+3F60tB4H7zQez UPoNXWBrNnryorS3GY0T0cN/w5JCx/g+0LQBS4j4YRIbUig83cZwA3+dQh0/w75KXb5f dopOzY6BjCjm4rbL0O7S1mqC1o12KyGjtFNrUbJl3AYS0DphtQd11DwPSRGOsI7fW8Xp M99w== X-Gm-Message-State: APjAAAU2THP7Jbr3/2lH1iswY8fJoRstjBdMS6KrJmoO6sMt7WZo3ji5 bEcm5LxJiJjrca5pqfnFLuKflCJBj54= X-Received: by 2002:adf:f343:: with SMTP id e3mr19104359wrp.315.1571655511574; Mon, 21 Oct 2019 03:58:31 -0700 (PDT) Received: from localhost.localdomain ([95.149.164.99]) by smtp.gmail.com with ESMTPSA id q22sm12544289wmj.31.2019.10.21.03.58.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 21 Oct 2019 03:58:31 -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 v2 6/9] x86: olpc: Remove invocation of MFD's .enable()/.disable() call-backs Date: Mon, 21 Oct 2019 11:58:19 +0100 Message-Id: <20191021105822.20271-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20191021105822.20271-1-lee.jones@linaro.org> References: <20191021105822.20271-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 | 6 ------ 1 file changed, 6 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..0fc57b59743c 100644 --- a/arch/x86/platform/olpc/olpc-xo1-pm.c +++ b/arch/x86/platform/olpc/olpc-xo1-pm.c @@ -126,10 +126,6 @@ static int xo1_pm_probe(struct platform_device *pdev) 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 +148,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)