From patchwork Fri Jan 30 14:47:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5751051 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 13DFDBF440 for ; Fri, 30 Jan 2015 14:52:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50F42201CE for ; Fri, 30 Jan 2015 14:52:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 70838200F3 for ; Fri, 30 Jan 2015 14:51:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422749AbbA3OtB (ORCPT ); Fri, 30 Jan 2015 09:49:01 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:57441 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753930AbbA3Ost (ORCPT ); Fri, 30 Jan 2015 09:48:49 -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 <0NIZ004HVVZZWM80@mailout2.w1.samsung.com>; Fri, 30 Jan 2015 14:52:47 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-6c-54cb993a30ab Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 47.39.07834.A399BC45; Fri, 30 Jan 2015 14:46:18 +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 <0NIZ00EV0VSES470@eusync2.samsung.com>; Fri, 30 Jan 2015 14:48:43 +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 , Russell King Cc: Thomas Gleixner , Pavel Machek , Kyungmin Park , Bartlomiej Zolnierkiewicz , Krzysztof Kozlowski Subject: [PATCH v3 16/20] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Fri, 30 Jan 2015 15:47:54 +0100 Message-id: <1422629278-12202-17-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1422629278-12202-1-git-send-email-k.kozlowski@samsung.com> References: <1422629278-12202-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRa0hTcRjG/e9cdjZaHealgx+CBqbZxQ0F3ySiguhPH6KLFEm3ky0tNh2b WmaRmQUzU1MrMzNt2ryEy0nQ3NRazrKp5RWjtGwW07TSLsQobctvv+fh9/B+eBlC+oQMZo4n pSi1SbxKRotJ59yzgTUxN52xco8jGvK6vwmgscREQdXzyyRk/Z0koXD8KwG2Lo8QDP1BkFMp h6u1RQRcMJhoeNUQDdcbl8K9mTs0WMsMJHx2K6A7a0oI7346EFjGpmko/mMUgLE1H4HZNUTB 69lfFPQ3l9Hw/Uo7Av2PUhre9EtA/7ISgdHTQELf4wrvYHqehpEXDhrqbW4Cupx9FJRO+YPz MgVOawq0XOwloMl8jYDfD1zUxlCcfSGXxjWzEXi09SmJ8xu+U9hSOiLE32YO4o8FRULcVBOO xyeNFDbX6Wn8dshG4y89PUJc3rkTt92+7xWqzmFH7ltyR3CceP1Rpep4mlIbseGwOLGx/j3S DAhPVbd/IjORlc5BDMOxUdyXz9tzkMiLQdyrUZO3FjNSthpxtsx7aCHkCbjuOjvts2g2kmsy Vv23AthpEdeRZyN9gWDfIM5iqxX4LH92N2cb/k34mGRDuPM9E6SPJSzmclta0MK9ZVxnRxHl Y5G3f+D+8J+l7FYuf7CELkCSCuRXhwKVqfEa3ZEEtWKtjlfrUpMS1sYnq81o4e0/HiFDR4wd sQySLZIM885YKcWn6dLVdsQxhCxAUlzorSRH+fTTSm3yIW2qSqmzIwEjCs5EF/drVm3CE8vD driimHUzK1dHzFkK5g8MWJP968UPWWS8G/phUL749FjWCc2xXZ5mPnBStS3lxp6sFZbsoN1H FvdN9O4zmlbvHdafkPSKNZcO/DoZ6oovD751piKup63kZcaoO4yVW7fYCs9G/szOc8XKHvq1 bs5QQIhQo15ypU1G6hJ5RTih1fH/AA/hu+fUAgAA 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 08e350e757dc..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); } }