From patchwork Thu Mar 12 07:44:16 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5991321 Return-Path: X-Original-To: patchwork-linux-input@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 CAE5BBF90F for ; Thu, 12 Mar 2015 07:45:47 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 164422034B for ; Thu, 12 Mar 2015 07:45:47 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D601D20381 for ; Thu, 12 Mar 2015 07:45:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753227AbbCLHpj (ORCPT ); Thu, 12 Mar 2015 03:45:39 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:8801 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233AbbCLHpH (ORCPT ); Thu, 12 Mar 2015 03:45:07 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL300EC19PXUG50@mailout1.w1.samsung.com>; Thu, 12 Mar 2015 07:49:09 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-8c-5501436d64dc Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id DA.FA.07834.D6341055; Thu, 12 Mar 2015 07:42:38 +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 <0NL300KWS9IOZC60@eusync2.samsung.com>; Thu, 12 Mar 2015 07:45:03 +0000 (GMT) From: Krzysztof Kozlowski To: Jiri Kosina , Henrik Rydberg , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH v6 18/22] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Thu, 12 Mar 2015 08:44:16 +0100 Message-id: <1426146260-30081-19-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1426146260-30081-1-git-send-email-k.kozlowski@samsung.com> References: <1426146260-30081-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpjluLIzCtJLcpLzFFi42I5/e/4Fd08Z8ZQgwdSFpOevGe2mLhyMrPF 7jmLWSxevzC0uPnpG6vF5V1z2Cw+9x5htDjxbRqTxendJQ6cHp9XvWL12DnrLrvH5hVaHptW dbJ59G1ZxehxZsERdo/Pm+QC2KO4bFJSczLLUov07RK4MlZfamAtuMZesXTyEqYGxr1sXYyc HBICJhLTDt9hhbDFJC7cWw8U5+IQEljKKDGreQ2U08cksaqnnR2kik3AWGLz8iVgCRGB+UwS /atOgLUzCxhK/Hz3B6xIWCBKYu29nWArWARUJU4dX8MMYvMKeEh8W7aXCWKdnMTJY5OBejk4 OIHirxfxgISFBNwlZi77xD6BkXcBI8MqRtHU0uSC4qT0XEO94sTc4tK8dL3k/NxNjJCw+7KD cfExq0OMAhyMSjy8EX0MoUKsiWXFlbmHGCU4mJVEeDmsGEOFeFMSK6tSi/Lji0pzUosPMTJx cEo1MC6xm9KbFxlkPndS6uH1XdG/LhSmJJd4q9azSU8pztYuvq7lx1P2we0Ah6Co/e5Dd/WW 1dlr3PrfEVmqMO/MNG7XDf1pF2y+aNqGFd/dJDzT/3nu/mnfZy2sLitIdf557c9519kbdBWj DAXeHjB+0CYU+26yKR/DUS3dxNoElcIJvJlce5WdlViKMxINtZiLihMBaEAsDhkCAAA= Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@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); } }