From patchwork Tue Mar 10 08:27:21 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5974771 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 2065A9F318 for ; Tue, 10 Mar 2015 08:31:34 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5F60520220 for ; Tue, 10 Mar 2015 08:31:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 89CE620259 for ; Tue, 10 Mar 2015 08:31:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752906AbbCJIb0 (ORCPT ); Tue, 10 Mar 2015 04:31:26 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:31151 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752404AbbCJI2P (ORCPT ); Tue, 10 Mar 2015 04:28:15 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NKZ00242MDIPL10@mailout4.w1.samsung.com>; Tue, 10 Mar 2015 08:32:06 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-49-54feaa86f2a7 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 2F.DC.07834.68AAEF45; Tue, 10 Mar 2015 08:25:42 +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:08 +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 17/22] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Tue, 10 Mar 2015 09:27:21 +0100 Message-id: <1425976046-20973-18-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: H4sIAAAAAAAAAyWRa0hTcRjG+++cnbOtRievJz/4wahIyCklvWRW0If+RImSRXQhpw4vOLVN TYNKjDRnOu+ESClOZzNnOitvjVBn6qbpREnzUmlh5tS8JVralt9+7/O87/N8eHmEXTXpwouI jpPIosVRbpSANG6+HzqcqtkM9LRM+UBWzwIHVJ0ZJKT8nSEhd2qegBbTOg1lA06gKPWEnOd5 BPRpj0FhrTM0F5eR8HPaC3pSZmmYWDEgaPxioSD/j5oDar0SQd3kEBeGF1e5MNBUTMFSZjuC 9OUiCqrbx2hQr2tJML8rsS5btigY6zZQUNUyTYDJaOZC0aw9GDO4YGyOg7cP+wnQ1RUQsPZy knt6H65cFOFxfRuJldolLm4sGqPxt+w8Gusq3XGdJp3Co0MtFJ7r7aXx064ArFPdx4bHoyT+ kbNB4Xn9IIXrB9NInFWvQf5OVwUnQiVREQkSmehkkCBcq+nkxPbTiakFWpSMGigF4vFY5ihb +tVdgfhWdGL7xmsoG9sx5YjtNF1UIIGVszjsh/pers2gmCOsTq2ibIYDY+Cx6/PTtG0gGDNi J6e6aFuqPePPvjEJbAcks59NqfjNsbGQwezHqiZqu82V7erI+x/Kt+rLyyPkdvNZdsz8C2Uj YQnaoUGOkviQWHlwmNTLQy6WyuOjwzxCYqR1aPvFyw2orON4K2J4yG2XcPjaZqAdV5wgT5K2 IpZHuDkIDUqrJAwVJ92RyGJuyuKjJPJWxOHxXZJR7YSr4+5P6NHogZ2rF2ICLItNzldqel6J jJGnKvS+M8N9wyHK3O58tvDFeY7eK3FhzVPl7fO644yfItB+9Ltsd4TvvXPlbeZcTaSH6EH+ 3dv6joPRaRvBlWSU88itGzpNAH9vm19QZmSR9/z16mdPVkou59vPXnJv3hM0d2jrs6HajZSH i73cCZlc/A+YpBdVwAIAAA== 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 Acked-by: Ingo Molnar --- 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); } }