From patchwork Thu May 19 13:25:41 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ulf Hansson X-Patchwork-Id: 9127615 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 CA84E6077E for ; Thu, 19 May 2016 13:39:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AD181281E5 for ; Thu, 19 May 2016 13:25:57 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A1BBF281E8; Thu, 19 May 2016 13:25:57 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 45201281E5 for ; Thu, 19 May 2016 13:25:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754819AbcESNZ4 (ORCPT ); Thu, 19 May 2016 09:25:56 -0400 Received: from mail-lb0-f176.google.com ([209.85.217.176]:36459 "EHLO mail-lb0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbcESNZz (ORCPT ); Thu, 19 May 2016 09:25:55 -0400 Received: by mail-lb0-f176.google.com with SMTP id h1so24525153lbj.3 for ; Thu, 19 May 2016 06:25:54 -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=lwPyurVHCOfJi0qvaYW/utQ+OmISBsEzFamsVQIO6tg=; b=jxUgi1Nuxno2fmZUw0TjJgmgheeF5wFtfyT1HO8GcfKM+xOOguffawlSSXaXY9+ijD VvvFQddkqoSjhy63Zw1T4Gj4JvZfAChylVsajYRGNKXB8gB18o++pl2FjOyil+ns2BjL HmVcbcxekIdP1uG9PviXTa/Sy8HYEH4DIKFWY= 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=lwPyurVHCOfJi0qvaYW/utQ+OmISBsEzFamsVQIO6tg=; b=mlFR5U5WqASJJbzRg0ECOz5eWZGAamx1K4AYlnqiE58NMTQZgp4RK4qvgF9QpIvFl2 FQXGvk/v9rKC37inB5MnaKe/uUIP/ZdC6+BerVH3yNAEND9ew1MLPOfA6exrgxEVQi2A /VPo03JIU8BN/YfRjFYFwWDl94eyviAmzDz47axhWsLOQRvAdy7LY5pmT1NUxdiDOeLt Zuk67ZwDDiAunOz+xluwAUSWXeh9ydr8TBFXOrbIo5c5hFT2N+S7+eZ6pPrPSTh41rdB hye8tusebDOMOdHERFEh50baPYq+Isy58uVfpC37DFXGKVWQPZHgRCPChL6P+YsNMvfr DT5w== X-Gm-Message-State: AOPr4FWK0IJi9uGeaM2c+JiS3XBrvywzCBV0vtynEKj3mxg5+TtS2SnKDEgeGF9etuHCzPD9 X-Received: by 10.112.55.202 with SMTP id u10mr4623602lbp.45.1463664352900; Thu, 19 May 2016 06:25:52 -0700 (PDT) Received: from uffe-Latitude-E6430s.ideon.se ([85.235.10.227]) by smtp.gmail.com with ESMTPSA id n37sm2435480lfg.46.2016.05.19.06.25.51 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 19 May 2016 06:25:51 -0700 (PDT) From: Ulf Hansson To: linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter , "Rafael J. Wysocki" , Len Brown Cc: linux-acpi@vger.kernel.org, Laszlo Fiat , Nicholas Krause , Subject: [PATCH 1/2] ACPI / PM: Export acpi_device_fix_up_power() Date: Thu, 19 May 2016 15:25:41 +0200 Message-Id: <1463664342-19209-1-git-send-email-ulf.hansson@linaro.org> X-Mailer: git-send-email 1.9.1 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 Drivers that needs acpi_device_fix_up_power(), allow them to be built as modules by exporting this function. Cc: # 4.5+ Tested-by: Laszlo Fiat Signed-off-by: Ulf Hansson Acked-by: Rafael J. Wysocki --- Rafael/Len, if you are okay with using acpi_device_fix_up_power() as a fix for an issue in patch 2/2, then I would like to request an ack so I can take both these patches via my MMC tree. --- drivers/acpi/device_pm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c index cd2c3d6..993fd31 100644 --- a/drivers/acpi/device_pm.c +++ b/drivers/acpi/device_pm.c @@ -319,6 +319,7 @@ int acpi_device_fix_up_power(struct acpi_device *device) return ret; } +EXPORT_SYMBOL_GPL(acpi_device_fix_up_power); int acpi_device_update_power(struct acpi_device *device, int *state_p) {