From patchwork Wed May 9 08:46:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 10388727 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EEE37602C2 for ; Wed, 9 May 2018 08:46:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E1BC42811A for ; Wed, 9 May 2018 08:46:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D691C28E3E; Wed, 9 May 2018 08:46:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DFECB2811A for ; Wed, 9 May 2018 08:46:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934070AbeEIIqz (ORCPT ); Wed, 9 May 2018 04:46:55 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:45343 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934048AbeEIIqv (ORCPT ); Wed, 9 May 2018 04:46:51 -0400 Received: by mail-lf0-f66.google.com with SMTP id q2-v6so4614464lfc.12 for ; Wed, 09 May 2018 01:46:50 -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=R+MyGq5a7LJwn0prtuFwp3xOSS5A149EqOrt9jQOCak=; b=kMZstKhIZTApNVy9WrXJxdV2/jb46cbl5gjViVM1dtYCmuIR+yq8huQycEe9nk1ZSW Aqqc5ANowr451gTijT4t8jdtbQuCWT+nbBTXDzEvaCkJyY/spleBexiM/01CU7UYqoR1 a9A5BiIpvysnP2hCvqwqSPfxb5GTLdXq5jY7g= 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=R+MyGq5a7LJwn0prtuFwp3xOSS5A149EqOrt9jQOCak=; b=VE2BrthsxDyOFoFFLI0DLMZdnrLOknJT+AOmdDAjTa9gvSTn+odTj7bsCyDkojcA7k +GmgvaiOeS9hep0O7/Pypf8+Y4k/Du5+ZvW/qq3rWq0isTKfOio7PTKonLhKRhHH2Ju3 TfuwpVrJXcIAGQEQvgwJzinsAaGhs75W5m9gQq4oE+eFH6rxYX5Vl1XB7oWctpBbY25D RPBwV2NItX64YlEqYgH1TqAjGgzPjHvZRAngoqc2QcKoZI4Ja7ByWi0NtkUqrV6il+wY sZ+7bpFWKUsYXaKRIYroIrubJmWguiFOc+fftq5CtZBHTBuaVuWTJ4DToicZlTLgInWj zxFA== X-Gm-Message-State: ALQs6tD1lH856+sGhgnqHrgycFZlGd/yq4Qi0A2AVnOU4DR7eO8/yVVY fwc8q+VyF705VKuEdQ5su5rsZw== X-Google-Smtp-Source: AB8JxZr99dcO7nwmG+hulJEuoufzNpY1r478sMg52nE4iIF2HMkkpNsp3C//gU96BemC2qCMBf/nWQ== X-Received: by 2002:a2e:9003:: with SMTP id h3-v6mr26680227ljg.33.1525855609748; Wed, 09 May 2018 01:46:49 -0700 (PDT) Received: from localhost.localdomain (c-5eeaaa12-74736162.cust.telenor.se. [94.234.170.18]) by smtp.gmail.com with ESMTPSA id l124-v6sm2048330lfg.62.2018.05.09.01.46.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 May 2018 01:46:48 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-pm@vger.kernel.org Cc: Ulf Hansson , Viresh Kumar , Tony Lindgren Subject: [PATCH 2/4] PM / core: Drop unused internal inline functions for wakeirqs Date: Wed, 9 May 2018 10:46:34 +0200 Message-Id: <1525855596-18116-3-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1525855596-18116-1-git-send-email-ulf.hansson@linaro.org> References: <1525855596-18116-1-git-send-email-ulf.hansson@linaro.org> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The inline versions of dev_pm_arm|disarm_wake_irq() and dev_pm_enable|disable_wake_irq_check() are not being used while CONFIG_PM is unset, hence let's drop them. Signed-off-by: Ulf Hansson Acked-by: Tony Lindgren --- drivers/base/power/power.h | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/drivers/base/power/power.h b/drivers/base/power/power.h index f38d178..be40910 100644 --- a/drivers/base/power/power.h +++ b/drivers/base/power/power.h @@ -93,23 +93,6 @@ static inline void wakeup_sysfs_remove(struct device *dev) {} static inline int pm_qos_sysfs_add(struct device *dev) { return 0; } static inline void pm_qos_sysfs_remove(struct device *dev) {} -static inline void dev_pm_arm_wake_irq(struct wake_irq *wirq) -{ -} - -static inline void dev_pm_disarm_wake_irq(struct wake_irq *wirq) -{ -} - -static inline void dev_pm_enable_wake_irq_check(struct device *dev, - bool can_change_status) -{ -} - -static inline void dev_pm_disable_wake_irq_check(struct device *dev) -{ -} - #endif #ifdef CONFIG_PM_SLEEP