From patchwork Mon Feb 23 11:47:37 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5864451 Return-Path: X-Original-To: patchwork-linux-acpi@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 D82FABF440 for ; Mon, 23 Feb 2015 11:50:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13B1B20610 for ; Mon, 23 Feb 2015 11:50:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BAF582061A for ; Mon, 23 Feb 2015 11:50:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752896AbbBWLuQ (ORCPT ); Mon, 23 Feb 2015 06:50:16 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:55374 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbbBWLs3 (ORCPT ); Mon, 23 Feb 2015 06:48:29 -0500 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) 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 <0NK800LLL3NA91A0@mailout2.w1.samsung.com>; Mon, 23 Feb 2015 11:52:22 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-64-54eb12f06a11 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 48.B7.26295.0F21BE45; Mon, 23 Feb 2015 11:45:52 +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 <0NK8001843FJ0A90@eusync2.samsung.com>; Mon, 23 Feb 2015 11:48:20 +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 v4 16/20] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Mon, 23 Feb 2015 12:47:37 +0100 Message-id: <1424692061-30624-17-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1424692061-30624-1-git-send-email-k.kozlowski@samsung.com> References: <1424692061-30624-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRV0xTYRiG/Xsm1SYnZR0hMYojgLKcn0aIUdRz4YUME8OFWqACSQukBSLe gKgxjDIskogokAJFNiWCyBCQolCWQBoxzAARGVpACCCILb173yfPl/fiozFhE25Hh4VHiWXh IokDycd1/z4PuRiE8/7u+eojkNpj4EHBl2QcErbncHg+/RuDxu5NClSDNpCU7w4Zb5UYPFZV ktBfcQ6yqm2haCmXhIYcFQ7zsx7Qk7BAwfiqFkH95CIJmVtqHqib0xBopvQEDC+vETD4IYeE FUU7gsQ/2SSUt49SkNiXj0C9WYHDQEue8WJxh4TRLi0JpY2zGHTrBgjIXrAEXTIBuoYoaHr6 FYMazQsM1qumiEvHuOJlN26s+RPOpVWsEFx99ijFGZbucDPpSoqrKXbmpufUBKcpSSS5EX0j yf3q7aW4N50+3MfXZUahII7Tpozg3M+Mv+TN/QH8i8FiSViMWObmdY8fWjoQT0TqqQeFygJe PGoik5AFzTKn2eXiJ7g527D9Y5VGzqeFTCFis9eTCHNJ5bHJw0W7FsmcYmvUBbuWFdNhwbaW K3imgjEDiJ2a7qRMliXjx77S92OmjDNH2dKXqt09AcOx+soNwrx3gO3sUBozTVsY+XhtjAkL meusojoTpSNBHtpTgqzF0UGR8sAQ6UlXuUgqjw4PcQ2KkGqQ+eWr71Fhx4U2xNDIYZ9gImbO X0iIYuSx0jbE0piDlcB+w4gEwaLYh2JZxF1ZtEQsb0M82sIuHp1Z2xNXu7fu0KaTb1uLWjWr OKHJpwjSs4WkJQYsREFt8SYcc5Hey8m5j6nOCnCpimVSy3WHO2/4Hr/v6M0GvvvhF625fdDn 2dlbZY+cPc/bfx/asVvmb4de7q2dWrniPkxKqcnaRAlqnZXn6bXXarzF2qtlJTN1tt9SMOsu B1weKvJwxmRy0X+Q+qiF0AIAAA== 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-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); } }