From patchwork Fri Oct 6 07:08:34 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9988393 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 2E01860244 for ; Fri, 6 Oct 2017 07:08:43 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1FF2128D39 for ; Fri, 6 Oct 2017 07:08:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 147EA28D7C; Fri, 6 Oct 2017 07:08:43 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 9C31A28D39 for ; Fri, 6 Oct 2017 07:08:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751450AbdJFHIl (ORCPT ); Fri, 6 Oct 2017 03:08:41 -0400 Received: from mail-lf0-f41.google.com ([209.85.215.41]:48227 "EHLO mail-lf0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751318AbdJFHIl (ORCPT ); Fri, 6 Oct 2017 03:08:41 -0400 Received: by mail-lf0-f41.google.com with SMTP id q132so19333820lfe.5 for ; Fri, 06 Oct 2017 00:08:40 -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; bh=mvOop0fuUQHGgc0i8GIuFMWb3syU6SIG+5iR0Y5zU6o=; b=OKCZhaDKB+v7Q0iq5M9uu10lM8pHsKoD4nVdRlBXHECEJdlyq19oOFWcIsLuKbWm85 REZP1kVoh84v5zvV0sF2qSETjfCrMdrEF1bFxzNviHnAgg6IaudTml5T+6ond/bSd/Ux CLvCifQYgUdJrV6a3LQTiwbFLAByEOCCxmEFA= 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; bh=mvOop0fuUQHGgc0i8GIuFMWb3syU6SIG+5iR0Y5zU6o=; b=Z+I4i9326JUxpmdEzovClsnXN/be7wMT9KZDTUktvJx9GNlT3c0+cX2TwH+m0sJMWl awcIAbhlpDWPUVoUHhPbLdKgXeeYXkuYJwn+XSn3ulHSLrcDWAlTmlX5//OGaorcWCI8 z4nXGlE9UiBKCT5+zbIVMRIAcW8z+y2HKKGPc6NUq4mMYFvbkHhfrXYagyh6MwwM8Nfl V/tVUI3aUgMipneFPO7GWqh29ZL4QCu3ef5dxC3QC75fjfk1N4AoCnLddSTuANtraWEc ti4EIQCtgb5Qh5ja/b/wSZ2MSZ7olBiGNK7tbLAztDwVM5dc27RacIHErkwCN8Bh2I3n GnWg== X-Gm-Message-State: AMCzsaXOuuF6JUV9drs0HKGWCufHNfuAgOVhkaHHeSLAvSMdht2KXUP0 s6SlZynKy5f7HTUjNBXcDkqg+FU+/ys= X-Google-Smtp-Source: AOwi7QBcCVdgLyGj8dGVXNv3da0V6F/Im8DVezG9IRMJgORDH4440ecuye7Df703Eu4/OdEzUz78ww== X-Received: by 10.25.16.28 with SMTP id f28mr433766lfi.133.1507273719813; Fri, 06 Oct 2017 00:08:39 -0700 (PDT) Received: from localhost.localdomain (h-158-174-22-67.NA.cust.bahnhof.se. [158.174.22.67]) by smtp.gmail.com with ESMTPSA id r29sm172253lje.90.2017.10.06.00.08.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Oct 2017 00:08:38 -0700 (PDT) From: Ulf Hansson To: "Rafael J . Wysocki" , linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: Len Brown , Pavel Machek , Ulf Hansson Subject: [PATCH] PM / ACPI: Removed unused function Date: Fri, 6 Oct 2017 09:08:34 +0200 Message-Id: <1507273714-26394-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 2.7.4 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP acpi_dev_pm_get_node() isn't used or implemented, let's remove it. Signed-off-by: Ulf Hansson Acked-by: Pavel Machek --- include/linux/acpi.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 502af53..3b89b4f 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -868,17 +868,12 @@ int acpi_dev_runtime_suspend(struct device *dev); int acpi_dev_runtime_resume(struct device *dev); int acpi_subsys_runtime_suspend(struct device *dev); int acpi_subsys_runtime_resume(struct device *dev); -struct acpi_device *acpi_dev_pm_get_node(struct device *dev); int acpi_dev_pm_attach(struct device *dev, bool power_on); #else static inline int acpi_dev_runtime_suspend(struct device *dev) { return 0; } static inline int acpi_dev_runtime_resume(struct device *dev) { return 0; } static inline int acpi_subsys_runtime_suspend(struct device *dev) { return 0; } static inline int acpi_subsys_runtime_resume(struct device *dev) { return 0; } -static inline struct acpi_device *acpi_dev_pm_get_node(struct device *dev) -{ - return NULL; -} static inline int acpi_dev_pm_attach(struct device *dev, bool power_on) { return -ENODEV;