From patchwork Fri Jan 30 14:47:53 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5750901 Return-Path: X-Original-To: patchwork-linux-acpi@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 A5BB99F302 for ; Fri, 30 Jan 2015 14:49:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EDE6E20304 for ; Fri, 30 Jan 2015 14:49:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0C490201CE for ; Fri, 30 Jan 2015 14:49:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422768AbbA3OtD (ORCPT ); Fri, 30 Jan 2015 09:49:03 -0500 Received: from mailout3.w1.samsung.com ([210.118.77.13]:56365 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422695AbbA3Osp (ORCPT ); Fri, 30 Jan 2015 09:48:45 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NIZ00LJXVZYL280@mailout3.w1.samsung.com>; Fri, 30 Jan 2015 14:52:47 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-67-54cb9939c21c Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id C3.39.07834.9399BC45; Fri, 30 Jan 2015 14:46:17 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync2.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NIZ00EV0VSES470@eusync2.samsung.com>; Fri, 30 Jan 2015 14:48:42 +0000 (GMT) From: Krzysztof Kozlowski To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" , Len Brown , Jiri Kosina , David Herrmann , Cezary Jackiewicz , Darren Hart , Support Opensource , Milo Kim , Julian Andres Klode , Marc Dietrich , Greg Kroah-Hartman , linux-acpi@vger.kernel.org, linux-input@vger.kernel.org, platform-driver-x86@vger.kernel.org, patches@opensource.wolfsonmicro.com, ac100@lists.launchpad.net, linux-tegra@vger.kernel.org, devel@driverdev.osuosl.org, Linus Walleij , Samuel Ortiz , Lee Jones , linux-arm-kernel@lists.infradead.org, Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, Daniel Mack , Haojian Zhuang , Robert Jarzmik , Russell King Cc: Thomas Gleixner , Pavel Machek , Kyungmin Park , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH v3 15/20] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Fri, 30 Jan 2015 15:47:53 +0100 Message-id: <1422629278-12202-16-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1422629278-12202-1-git-send-email-k.kozlowski@samsung.com> References: <1422629278-12202-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRfSzUcRjAfe/3dnfr5hfSbypb11qb5i0tT601act32prQWv0RFxea83KH xT/J2/J25G2IIi+HzGtr4SJ0ivMWMs1Lec1EXpPdqA7/fZ7PPs+ePx4+YdRKmvH9AkKk8gCJ v5gWktq/H4csz+do3W2elZiBsmeFB7XZ1RQUf0okIWpngYS0mWUC1N06BooGTSGh0AaelqcT EF1UTUN/lT1k1R6G0tUXNDTlFZHwc94WeqIWGfj2W4OgYXKJhoxtFQ9UzSkI6qaHKfi6tknB YGMeDevJHxDEb+TSMDoogvi+QgQqXRUJA+8L9AtL/2gY79LQ8Eo9T0C3doCC3EVj0CZSoG0K gXexnwmor8skYKtmmnI4hWOik2hctmaNJ5rbSZxStU7hhtxxBq+s3sWzqekMri+zwDMLKgrX VcTTeGxYTeNfvb0Mft55A7fkV+qD4kdYkzRGupjdEV70lvr7hUnl1pc8hb6afLegPuZhy59M KhK9oROQgM+xZ7nEuTxin025/olqvRfyjdgSxMXFPmH2ByWPG5kbI3crmrXj6lXFe5UJuyTg OpRqcncg2FHENajLebuVMevCxVWOUrtMsie5zsmtPRaxmCvVpTL798y5zo70PS/Q+5r5qT02 Yp24lC/ZdCoSFSCDCnRIGuoVpLjnI7O1UkhkitAAHyuvQFkd2n/7xltU1HGhDbF8JD4gGpFo 3Y0oSZgiXNaGOD4hNhFlpOmVyFsSHiGVB3rIQ/2lijbE4wvMIlFSsbFBnOG01w/nAapx0ams 2fE4lt7EdsqcKxGi7fbZvtbXxx6U6ZKv1oqCoxUxDsv90yGPZZU6QRyTeuIcZy7u82jd0QV4 344RXN+8NeKifHl6sHQKlQQ2VnT3HNRZHrW3sNVcaw3JMpw8Qmd4fne73JVQ3xkUfMbV8b7r kLOVmFT4SmwtCLlC8h9wAhXg1AIAAA== Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable 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 Replace direct usage of put_device() with new API: power_supply_put(). Signed-off-by: Krzysztof Kozlowski Acked-by: Pavel Machek Reviewed-by: Bartlomiej Zolnierkiewicz Reviewed-by: Sebastian Reichel --- arch/x86/platform/olpc/olpc-xo1-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo1-sci.c b/arch/x86/platform/olpc/olpc-xo1-sci.c index 9a2e590dd202..7fa8b3b53bc0 100644 --- a/arch/x86/platform/olpc/olpc-xo1-sci.c +++ b/arch/x86/platform/olpc/olpc-xo1-sci.c @@ -61,7 +61,7 @@ static void battery_status_changed(void) if (psy) { power_supply_changed(psy); - put_device(psy->dev); + power_supply_put(psy); } } @@ -71,7 +71,7 @@ static void ac_status_changed(void) if (psy) { power_supply_changed(psy); - put_device(psy->dev); + power_supply_put(psy); } }