From patchwork Mon Feb 23 11:47:36 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5864591 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 60ACABF440 for ; Mon, 23 Feb 2015 11:53:08 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 907A620615 for ; Mon, 23 Feb 2015 11:53:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A245320219 for ; Mon, 23 Feb 2015 11:53:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753080AbbBWLvk (ORCPT ); Mon, 23 Feb 2015 06:51:40 -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 S1752504AbbBWLsV (ORCPT ); Mon, 23 Feb 2015 06:48:21 -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 <0NK800KK03N87UA0@mailout2.w1.samsung.com>; Mon, 23 Feb 2015 11:52:21 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-1e-54eb12f1dae5 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id D2.6A.07834.1F21BE45; Mon, 23 Feb 2015 11:45:53 +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:18 +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 15/20] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Mon, 23 Feb 2015 12:47:36 +0100 Message-id: <1424692061-30624-16-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: H4sIAAAAAAAAAyWReUiTcRjH++099m40eJlmb0r+sTJpkDf1YCFDBF8iQcEgCsqlS4V5tKlk IZmV15q3FqKpaM08pk4o78qcR1ObR0bhUbjSvOcRallN/e/5fvh8+f7xUJiwHbelwiNjZIpI qVxE8nHD357RU2bhfKBLaos7ZAyscKCiV4VD0s4cDjmmZQza+re5UD5iA+llLpD9IheD++V1 JBi1Z6Cg4TA8N5eQ0FpUjsP8rCsMJC1wYWpDj6D52yIJeX80HNB0ZCLQTY8R8Hn1FwEjLUUk rKm7EKStF5JQ2zXBhbQPZQg021ocht+UWhqL/0iYeK8nobptFoN+wzABhQtWYFARYGiNgfaH Qxg06vIx2KyfJiQn2MpVZ3ay4x3OZmrXCLa5cILLrpivst+zcrlsY6WYNc1pCFZXlUay42Nt JLs0OMhln/YFsK+LayxCxV1W/2gcZ39m/yb9j1zmnwuRycPjZApnryB+mLaqlxM9xL2VnK9F iaiJTEc8iqE9mOSyKWL/tmGMk3UWzqeE9DPE1C/3Evshg8Pk1RrRrkXS7kyjpmLPsqa7eczb WjVnN2D0MGKmTX3cXcuK9mdmRnR7DZx2YKb1qj0uoFkm5VMj2t+zZ/q6cy0TFMWz8KmXcbtY SPsy6oY8lIUEpehAFTokiw2OVl4PjXB1UkojlLGRoU7BURE6tP/y9SZU3u3ZiWgKiQ4KvsbN BQoJaZwyPqITMRQmshbYbVmQIEQaf1umiLqmiJXLlJ2IQ/FsE1GypMYDPfHc1CX9CN50oxOa hV5Vpw3HdSWpg5XRDiLrx8U5E3eMKTq5HX941ZwhobYq6QTaKsRhJPfCwLzvyY9BLrb38m+o QsU8k8TNRy7aeDAesJO55rh06cqo8Vh0YoHa3DPOCGeO2m50+N2sqC4SvbK/eNax2Of8Fz9v b7EIV4ZJXcWYQin9D4rgbjLQAgAA 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); } }