From patchwork Thu Mar 12 07:44:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5991791 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 223ABBF90F for ; Thu, 12 Mar 2015 07:52:09 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50BF92034B for ; Thu, 12 Mar 2015 07:52:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 239C9200CF for ; Thu, 12 Mar 2015 07:52:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753010AbbCLHvf (ORCPT ); Thu, 12 Mar 2015 03:51:35 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:63463 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753518AbbCLHpY (ORCPT ); Thu, 12 Mar 2015 03:45:24 -0400 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NL300D9I9PUY150@mailout3.w1.samsung.com>; Thu, 12 Mar 2015 07:49:06 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-eb-5501436887f4 Received: from eusync2.samsung.com ( [203.254.199.212]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id D9.2C.26295.86341055; Thu, 12 Mar 2015 07:42:32 +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:02 +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 17/22] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Thu, 12 Mar 2015 08:44:15 +0100 Message-id: <1426146260-30081-18-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/4Fd0MZ8ZQgwUb1S0mPXnPbDFx5WRm i91zFrNYvH5haHHz0zdWi8u75rBZfO49wmhx4ts0JovTu0scOD0+r3rF6rFz1l12j80rtDw2 repk8+jbsorR48yCI+wenzfJBbBHcdmkpOZklqUW6dslcGWsW3WCqeAie0Xb1HWMDYw72LoY OTkkBEwk/k04ygRhi0lcuLceKM7FISSwlFFi4/TL7BBOH5PEsYXXGEGq2ASMJTYvXwJWJSIw n0mif9UJVpAEs4ChxM93f9hBbGGBSIkFZ9cDjeXgYBFQlbjcHggS5hXwkHh7ZT0rxDY5iZPH JrOClHACxV8v4gEJCwm4S8xc9ol9AiPvAkaGVYyiqaXJBcVJ6blGesWJucWleel6yfm5mxgh Yfd1B+PSY1aHGAU4GJV4eCP6GEKFWBPLiitzDzFKcDArifByWDGGCvGmJFZWpRblxxeV5qQW H2Jk4uCUamCMnHzYSf7sayXxXQK1KyZF9R2OX2z0Y27V7f8Rq7Kz3v1811VzV7Jn0T7pb5I8 pjHFR6fxTa5ruBm1wYkx4/vC76WpN5JtIs/tuP+cddVZ7s36q39kqqyQzb+x7e4D/VwD0xkf zN9fMhc3+7Vnc+d8yclVD/01+33fbbg8S1jAuaPNR3BZ0pYmJZbijERDLeai4kQA7WXB+hkC AAA= 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-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); } }