From patchwork Wed Apr 22 09:45:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Axel Haslam X-Patchwork-Id: 6255471 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 8B2AD9F1C4 for ; Wed, 22 Apr 2015 09:47:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B1DC2202FF for ; Wed, 22 Apr 2015 09:47:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DDCC2202E9 for ; Wed, 22 Apr 2015 09:47:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965930AbbDVJql (ORCPT ); Wed, 22 Apr 2015 05:46:41 -0400 Received: from mail-wi0-f170.google.com ([209.85.212.170]:38728 "EHLO mail-wi0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965019AbbDVJqk (ORCPT ); Wed, 22 Apr 2015 05:46:40 -0400 Received: by wiun10 with SMTP id n10so50550403wiu.1 for ; Wed, 22 Apr 2015 02:46:39 -0700 (PDT) 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:in-reply-to :references; bh=en4+cC7T/LVIPUuRtcfIQyRUfn6w6aPLogLpEPk6N+4=; b=AWrQlZ5dhT0sX5EA/WXYu2Ipqq5VnL1HshNA/2TZ6QojF0EynL/a7ZKx12MYn6gioK Q2PUnfBFVAR1DB0gP5pj+NEdxXAZD2D7vM0ALcEYYC6i5+werd5q3oOpvW+IpNWPyrJR heMgnYk2R0VYoOzrkqq/7pJEMs+mAiRIlZxfYgg6zjATmF+wL4IyzHVXx5SdLGrgZgDX fnucU5PqCxmedTb0z8twlT3+pSXZEgi1fvtlN8jdUPXX2icf+MXvTecaIygKtKkhIVmc ldxGQZFzRHfzHbTlPcjvwTEva85r8twRMXc/6pdC+9OgFqRpzuXF/T+HHZklgX5I1Rbe GAUg== X-Gm-Message-State: ALoCoQnUFTY/0+tr1qahN6OXa+HqP2aFBdHQu2CEM+MMjJfcWUGGqk3AHQYffUzP/2ijd0uAclL9 X-Received: by 10.180.78.135 with SMTP id b7mr4206880wix.65.1429695999638; Wed, 22 Apr 2015 02:46:39 -0700 (PDT) Received: from axelh-ThinkPad-T440s.home (LPoitiers-656-1-62-228.w90-63.abo.wanadoo.fr. [90.63.143.228]) by mx.google.com with ESMTPSA id mc20sm6954975wic.15.2015.04.22.02.46.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 22 Apr 2015 02:46:38 -0700 (PDT) From: ahaslam@baylibre.com To: ulf.hansson@linaro.org, khilman@linaro.org, k.kozlowski.k@gmail.com, rjw@rjwysocki.net Cc: bcousson@baylibre.com, linux-pm@vger.kernel.org, Axel Haslam Subject: [RFC v4 8/8] PM / Domains: remove old power on/off callbacks. Date: Wed, 22 Apr 2015 11:45:35 +0200 Message-Id: <1429695935-15815-9-git-send-email-ahaslam@baylibre.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1429695935-15815-1-git-send-email-ahaslam@baylibre.com> References: <1429695935-15815-1-git-send-email-ahaslam@baylibre.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, TVD_SUBJ_WIPE_DEBT, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Axel Haslam Now that all known users have been converted to use the state version of the callbacks, we can remove the default callbacks without breaking compilation. Signed-off-by: Axel Haslam --- include/linux/pm_domain.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/include/linux/pm_domain.h b/include/linux/pm_domain.h index f20c2c0..9bf9217 100644 --- a/include/linux/pm_domain.h +++ b/include/linux/pm_domain.h @@ -78,10 +78,6 @@ struct generic_pm_domain { unsigned int suspended_count; /* System suspend device counter */ unsigned int prepared_count; /* Suspend counter of prepared devices */ bool suspend_power_off; /* Power status before system suspend */ - int (*power_off)(struct generic_pm_domain *domain); - s64 power_off_latency_ns; - int (*power_on)(struct generic_pm_domain *domain); - s64 power_on_latency_ns; struct gpd_dev_ops dev_ops; s64 max_off_time_ns; /* Maximum allowed "suspended" time. */ bool max_off_time_changed;