From patchwork Mon Jan 5 15:47:58 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5568951 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 3125BBF6C3 for ; Mon, 5 Jan 2015 15:51:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2FA1C20166 for ; Mon, 5 Jan 2015 15:51:34 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 94E9A20149 for ; Mon, 5 Jan 2015 15:51:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753868AbbAEPvM (ORCPT ); Mon, 5 Jan 2015 10:51:12 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:63802 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753646AbbAEPs1 (ORCPT ); Mon, 5 Jan 2015 10:48:27 -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 <0NHP006IAO3HGB10@mailout2.w1.samsung.com>; Mon, 05 Jan 2015 15:52:29 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-ca-54aab24874b4 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 65.74.07834.842BAA45; Mon, 05 Jan 2015 15:48:24 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHP00HBJNWDWI80@eusync4.samsung.com>; Mon, 05 Jan 2015 15:48:24 +0000 (GMT) From: Krzysztof Kozlowski To: "Rafael J. Wysocki" , Len Brown , Sebastian Reichel , Dmitry Eremin-Solenikov , David Woodhouse , Pavel Machek , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RFC PATCHv2 15/19] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Mon, 05 Jan 2015 16:47:58 +0100 Message-id: <1420472882-10463-16-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1420472882-10463-1-git-send-email-k.kozlowski@samsung.com> References: <1420472882-10463-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprGLMWRmVeSWpSXmKPExsVy+t/xa7oem1aFGJy7oG8x6cl7ZouJKycz W7x+YWix8+FbNovl+/oZLTY9vsZqcXnXHDaLz71HGC3unjrKZnHm9CVWi9O7Sxy4PXbOusvu sXmFFtCcTjaPzUvqPbZcbWfx6NuyitFjxerv7B6fN8kFcERx2aSk5mSWpRbp2yVwZaya/pat 4AFbReuHm8wNjBdZuxg5OSQETCTmL9/KAmGLSVy4t56ti5GLQ0hgKaPEw02rWCGcPiaJ+fN2 MIFUsQkYS2xevgSsSkTgCZPE9NaTYO3MAoYSP9/9YQexhQXCJO5+a2MGsVkEVCWO7zoKto5X wEOiueMGG8Q6OYmTxyaDxTmB4k1/L4DNERJwl/jw7BfrBEbeBYwMqxhFU0uTC4qT0nMN9YoT c4tL89L1kvNzNzFCwvLLDsbFx6wOMQpwMCrx8HqcWBkixJpYVlyZe4hRgoNZSYT3VfqqECHe lMTKqtSi/Pii0pzU4kOMTBycUg2MHmpT1m+Q+W/6p/CMu13qMhWn7O28GYdP345fVfmrUmJr WL7NZc6/rfM82W/2uci63ixaKvX+zhZeLoE1u2037fhyrH1bcM6DhlP3vT5obc27398UKNZh btzV/JBbNyJ9V+wLx2dFrSu8VQXa7Deuf/hIXvjfHcmJrq6nHq64b/PkKuvLZs0PSizFGYmG WsxFxYkA9OjimSkCAAA= 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 --- 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); } }