From patchwork Tue Mar 10 08:27:22 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5974581 Return-Path: X-Original-To: patchwork-linux-pm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1A401BF440 for ; Tue, 10 Mar 2015 08:29:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4AAAF2026F for ; Tue, 10 Mar 2015 08:29:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 37DB520259 for ; Tue, 10 Mar 2015 08:28:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752725AbbCJI2z (ORCPT ); Tue, 10 Mar 2015 04:28:55 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:34146 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752332AbbCJI2f (ORCPT ); Tue, 10 Mar 2015 04:28:35 -0400 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 <0NKZ0031VMDPGL10@mailout3.w1.samsung.com>; Tue, 10 Mar 2015 08:32:13 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-4e-54feaa88d5fc Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 12.EC.07834.88AAEF45; Tue, 10 Mar 2015 08:25:44 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NKZ0033KM64IB70@eusync4.samsung.com>; Tue, 10 Mar 2015 08:28:09 +0000 (GMT) From: Krzysztof Kozlowski To: Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , "Rafael J. Wysocki" , Len Brown , Jiri Kosina , David Herrmann , Cezary Jackiewicz , Darren Hart , Support Opensource , Milo Kim , 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 , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, 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 Cc: Thomas Gleixner , Pavel Machek , Kyungmin Park , Marek Szyprowski , Krzysztof Kozlowski Subject: [PATCH v6 18/22] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Tue, 10 Mar 2015 09:27:22 +0100 Message-id: <1425976046-20973-19-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1425976046-20973-1-git-send-email-k.kozlowski@samsung.com> References: <1425976046-20973-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAy2Ra0iTYRiGffed5mjyMQ99CpUpRUkehkEPJdaf6oUQsiToaEuXCpvKppJW ZFIsD3kuSMwDTqcTD01/aB4qdeZymk0cKGqFSvMwLV0SZiun/bvum+vm+fHwCVEz6cWPi0+S KuIlMh9aQA7a35v9n2jtEUFzzZ6QO/SdB+qBbBIy/iyQUDi7QkCncYOBqlEPyKoMgoK6IgJG Go/B81e7oaO0ioRFixiGMpYY+PxTj6D9q5WG4k0NDzTdeQh0M2YKxlfXKRh9XUrD2tM+BJm2 Ehoa+qYY0Gw0kmB6W7ElW//SMPVBT0N9p4UA46CJgpIlVxjMpmCwIwm6Hn8ioEX3jIBfzTPU KV9cuxqIp7t7SZzXuEbh9pIpBs/lFzG4pdYP67SZNJ40d9J4eXiYwWWGcNyifoD1OZMkni/4 TeOV7jEat46pSJzbqkXnPa4IQqKlsrgUqSIw9KYgtt6UTiWamTvVRWpeOuqis5Azn2OPciNz j4gd9uBGppu2egFfxFYjbq2jnNgJuTzOZO0lHRbNBnMtGvW25cbq+dzGioVxBII1IW5m1sA4 LFf2Ilc+XoYcTLIHONtQxfZayGLOOFP///ZeztBfRDnYeau32Sa2HRF7lpsy/UD5SFiBnLTI XZoclai8FSMXByglcmVyfExAVIJch3a+bGtDVf3HexDLRz67hONX7REiSpKiTJX3II5P+LgJ 9XlblTBakpomVSREKpJlUmUP4vGdvdJRsKHJd/4IfdrpWw0yBr8Ys17WRHoX5zbsuaZIdpl4 qOoulhoWm/c1vlzqC5MdSrtxMi3fel/L3VZZfMPf6ULeqK6HStp4C3fPCQbs3mJBpVPNpqdF bq/rPShSSTbd12VnLk0etnws7MrjCcUXwow5Lif2+6/034tMGfgSsWwO9iGVsRKxH6FQSv4B T+hA8MMCAAA= Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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 Acked-by: Ingo Molnar --- arch/x86/platform/olpc/olpc-xo15-sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index 186634e9021d..55130846ac87 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c @@ -83,7 +83,7 @@ static void battery_status_changed(void) if (psy) { power_supply_changed(psy); - put_device(&psy->dev); + power_supply_put(psy); } } @@ -93,7 +93,7 @@ static void ac_status_changed(void) if (psy) { power_supply_changed(psy); - put_device(&psy->dev); + power_supply_put(psy); } }