From patchwork Mon Jan 5 15:47:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5568871 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 110DEBF6C3 for ; Mon, 5 Jan 2015 15:50:30 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C14E2011B for ; Mon, 5 Jan 2015 15:50:29 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id ABA8320149 for ; Mon, 5 Jan 2015 15:50:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754429AbbAEPtw (ORCPT ); Mon, 5 Jan 2015 10:49:52 -0500 Received: from mailout1.w1.samsung.com ([210.118.77.11]:56286 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754146AbbAEPs3 (ORCPT ); Mon, 5 Jan 2015 10:48:29 -0500 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 <0NHP00JI7O3KIB60@mailout1.w1.samsung.com>; Mon, 05 Jan 2015 15:52:32 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-c6-54aab248e9e4 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 64.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 14/19] x86/olpc/xo1/sci: Use newly added power_supply_put API Date: Mon, 05 Jan 2015 16:47:57 +0100 Message-id: <1420472882-10463-15-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+NgFprKLMWRmVeSWpSXmKPExsVy+t/xa7oem1aFGBzvFbSY9OQ9s8XElZOZ LV6/MLTY+fAtm8Xyff2MFpseX2O1uLxrDpvF594jjBZ3Tx1lszhz+hKrxendJQ7cHjtn3WX3 2LxCC2hOJ5vH5iX1HluutrN49G1ZxeixYvV3do/Pm+QCOKK4bFJSczLLUov07RK4Mk79eMZc cJut4sebvcwNjGdYuxg5OSQETCRaLr1ihLDFJC7cW8/WxcjFISSwlFHi1dzlzBBOH5PE/Hk7 mECq2ASMJTYvXwJWJSLwhElieutJFpAEs4ChxM93f9hBbGGBUIk1N76DxVkEVCXa+hcDNXBw 8Ap4SKxusIfYJidx8thksCs4gcJNfy+AlQsJuEt8ePaLdQIj7wJGhlWMoqmlyQXFSem5hnrF ibnFpXnpesn5uZsYIUH5ZQfj4mNWhxgFOBiVeHg9TqwMEWJNLCuuzD3EKMHBrCTC+yp9VYgQ b0piZVVqUX58UWlOavEhRiYOTqkGRnPDG1xii5y3ezYcFww0e/fua6nzA+az+tV9BYYuoiIC m/+tTbCY31UzZa9Uo3DY7LCqi9dmFKVctj9j6SewcKXxW8Wei82i3VY6197FHHoYxCMtlGTF tDb0peQKVuaC3m3hW5/tOP1JILBn8b8yl8evQtZtEHO9wHbp/conHvZee0XXKq6oVGIpzkg0 1GIuKk4EALrS6i4oAgAA 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-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 9a2e590dd202..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); } }