From patchwork Fri Feb 27 08:19:56 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5898701 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 31FF39F373 for ; Fri, 27 Feb 2015 08:23:52 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id F3C5E2020E for ; Fri, 27 Feb 2015 08:23:50 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9F2EC201BB for ; Fri, 27 Feb 2015 08:23:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755146AbbB0IXL (ORCPT ); Fri, 27 Feb 2015 03:23:11 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:46706 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754894AbbB0IUx (ORCPT ); Fri, 27 Feb 2015 03:20:53 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKF00FFE8PFT570@mailout2.w1.samsung.com>; Fri, 27 Feb 2015 08:24:51 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-45-54f02851c2f0 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 6E.BD.07834.15820F45; Fri, 27 Feb 2015 08:18:25 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NKF007VV8HM7X70@eusync1.samsung.com>; Fri, 27 Feb 2015 08:20:50 +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 Cc: Thomas Gleixner , Pavel Machek , Kyungmin Park , Marek Szyprowski , Krzysztof Kozlowski Subject: [PATCH v5 15/20] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Fri, 27 Feb 2015 09:19:56 +0100 Message-id: <1425025201-15926-16-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1425025201-15926-1-git-send-email-k.kozlowski@samsung.com> References: <1425025201-15926-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRfSzUcRzHfe/3dHd128+RfpmljGoq3Gr61JpszXxt2dL4o9binBuWp91h NC3Tah15jkVX6OhQTs4/nIfKM4c8NFsNkcskz081UTn+e33ee30+7z8+fELcRNryw6Ni5Yoo aYQDLSSNfzuHT/udWPJ3a1ZRkNG3xIPSrjQSUrZnScgxLRLQ2LvJgGbYBlJL3CC7IpeA+5pq GgZ05yC/5iC8Wi6ioUGtIeHnjAT6UuYY+LrejqB+cp6GJ1taHmibMxHop0Yo+LyyQcGwQU3D anobAtVaIQ1VbWMMqD6WINBu6kgYel+8szH/j4axnnYaXjfOENBrHKKgcM4KjGkUGBtioenB IAG1+jwCfr+dojyP4fIVVzze3EriTN0qhesLxxi8tHwLf8/KZXBtuTM2zWoprK9U0Xh0pJHG C/39DH7R7YffPX+zI5Tew+2PR0n8I/sPffXQDeHFEHlEeLxc4eoRJAzTVXbxYgaZhId5OpSM 6uhUJOBz7FlOvZBD7LENNzBevZML+WK2DHHGp+m7kpjN4HEjPW5mptkzXK22dFeyZjsE3Ieq dJ55INghxE2ZuhmzZcVe5caLpnfPkqwTN9HykmdmEYu5HMMGuVd3mOvuyKXMLNjJF7YLmL02 b6665BfKQqJiZFGJDsjjZDHK4NBIiYtSGqmMiwp1kUVH6tHey9fqkKbjQgti+chhv8jTcslf TEnjlYmRLYjjEw7WIjS56C8WhUgT78gV0YGKuAi5sgXx+ALbZGRt2LalGaXv7WZtpfjouIUi yPGKIFoWIDsvy7B3rL+cn2kx3SqsDTWsS/Z5nLQ81eOVtVVTH2zX6+zekNTnNFE+V+Zz3Cs/ 5ZpkscO1IFa0Krpp1/klDLyFppCaae6I6pNP4CPpJXcNNn2bvpsTdz3gmdzXJ7lCnKC2j1LH JjmQyjCpxJlQKKX/AchMDanQAgAA 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 e4ed28bbf79d..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); } }