From patchwork Wed Oct 28 21:18:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lina Iyer X-Patchwork-Id: 55721 Delivered-To: patch@linaro.org Received: by 10.112.61.134 with SMTP id p6csp180509lbr; Wed, 28 Oct 2015 14:19:30 -0700 (PDT) X-Received: by 10.68.142.129 with SMTP id rw1mr25966373pbb.149.1446067170383; Wed, 28 Oct 2015 14:19:30 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id zl1si72937854pbc.95.2015.10.28.14.19.30; Wed, 28 Oct 2015 14:19:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro_org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756432AbbJ1VTZ (ORCPT + 11 others); Wed, 28 Oct 2015 17:19:25 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:36688 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756427AbbJ1VTX (ORCPT ); Wed, 28 Oct 2015 17:19:23 -0400 Received: by pacfv9 with SMTP id fv9so18421764pac.3 for ; Wed, 28 Oct 2015 14:19:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro_org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=0akc5xXH98zhdxvt28dJOa8AO+5uiHZwjT2ac7lGSGU=; b=trWiFiYprZrmGqA6VgKFNDUDyEkE6ARoCeUcz2eMRWS0ro4viiciMc5dCYUpD7fNFq hOwlC7ohP3XxwH5W8GI7njRJVuP3KQv/ZXNo6JZtJKpXUtMjIE4V9gxnIwyWmgoEIKJt IXaklyfSerBCiIdJfHM18IWNebmD7mqwvJeZ8yhZ1oS9WgLzhP2/ZIvJB64u35n+Fh/1 AUaRgiNrBlpW6b4HGTWz8JH/zYr5GH5OZDz3lZdGBqSMtWWmXG1Y28ntAHRA95yOf0XV tCGTQTmtbLS1rRVna9hnVSjAlo/BJoyal3ZqDynQRaFaTzWdv8pdr/Yq5O0kKnfb2a9M 4/Gw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=0akc5xXH98zhdxvt28dJOa8AO+5uiHZwjT2ac7lGSGU=; b=SqzL3J3hvTEmUQG1pDG1ptyBC7rxccx5UlczzNPVr5TCuJ5kdRiegikDy/vFqCxwVS mfrl9gzX+XNNdDMQ918TicghPu2pxTKuGShsjzum8RkINc6xkRKb6R6CU23NWvHcflqN XCax4r29DEruBng5CxvzL+RWDMhLYXio4obR9vp8FRnRQsQtNyj98WSpEQlT4a0f1oA9 5MZHJP85YMYDn/rgDdtLGWEC1GkFDrE7Fec4M/jMbQbgIPNrn3Uir3YuxqsQ7m4SmeWL 4cEAjzRwy8otQo64VFH+77UH7l+BV6oINKr8MXJ6zP72fNGOnY09tUtecld4+4QehrZQ yHlw== X-Gm-Message-State: ALoCoQleRSP3KGpEbJD7WDwUfd2ZpgSMSPSwzIZRjD27aI2fcbiKuQ918sa4wQDvLH2QWSj4Polf X-Received: by 10.66.122.69 with SMTP id lq5mr36082313pab.125.1446067162580; Wed, 28 Oct 2015 14:19:22 -0700 (PDT) Received: from ubuntu.localdomain (i-global254.qualcomm.com. [199.106.103.254]) by smtp.gmail.com with ESMTPSA id k5sm1003185pbq.74.2015.10.28.14.19.20 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 28 Oct 2015 14:19:21 -0700 (PDT) From: Lina Iyer To: rjw@rjwysocki.net, linux-pm@vger.kernel.org Cc: ulf.hansson@linaro.org, Lina Iyer , Kevin Hilman Subject: [PATCH] PM / Domains: Remove dev->driver check for runtime PM Date: Wed, 28 Oct 2015 15:18:59 -0600 Message-Id: <1446067139-42360-1-git-send-email-lina.iyer@linaro.org> X-Mailer: git-send-email 2.1.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Remove check for driver of a device, for runtime PM. Device may be suspended without an explicit driver. This check seems to be vestigial and incorrect in the current context. Reviewed-by: Krzysztof Kozlowski Acked-by: Ulf Hansson Signed-off-by: Kevin Hilman Signed-off-by: Lina Iyer --- drivers/base/power/domain.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-pm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index 9b0f5a0..6483a92 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c @@ -346,8 +346,7 @@ static int pm_genpd_poweroff(struct generic_pm_domain *genpd) if (stat > PM_QOS_FLAGS_NONE) return -EBUSY; - if (pdd->dev->driver && (!pm_runtime_suspended(pdd->dev) - || pdd->dev->power.irq_safe)) + if (!pm_runtime_suspended(pdd->dev) || pdd->dev->power.irq_safe) not_suspended++; }