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: 9988395 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 8AEDE603FA 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 7E50D28D39 for ; Fri, 6 Oct 2017 07:08:43 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7335228D78; 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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 21EC028D8B for ; Fri, 6 Oct 2017 07:08:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751474AbdJFHIl (ORCPT ); Fri, 6 Oct 2017 03:08:41 -0400 Received: from mail-lf0-f53.google.com ([209.85.215.53]:52158 "EHLO mail-lf0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751454AbdJFHIl (ORCPT ); Fri, 6 Oct 2017 03:08:41 -0400 Received: by mail-lf0-f53.google.com with SMTP id r129so241274lff.8 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=Vw15GpkHDqquDKudnXrSscvOf8iraRYeK6es6WRYqYZhWkWwY6KXQspnaaHMpbrvpH oOjMZdF7uAbALlkbPgl6vxLocHTbcrdaCFy4Jw/509h7BSwpA04vKs/1g/g9TtFfOPXI vhLO0uuqh8OhPzpMt/yJ7lP/JSWlylPkEPYRDxrDmJiWYIxipCEjTfwrWWjL8Hg7eP9w GZV4DHIuSsdFp5STNk2X4c/uctKTPVSj0Bxdg5O/e+t69VEmJoYytVE+qZ85Cb9rDf/c V4nwtal+/moY3sFHLhgrRJgzKSj1I8mZQ30xAvyEzAe/MkOJFJvbFBiHDMBGrLYAD5il L1Rg== X-Gm-Message-State: AMCzsaUB1XlVAnVj1atf7/gbWUbilwEpgjSLMs37TcBWLIR2sg8HrOu8 YCxorols511kQFEXPYXFLIxT8g== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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;