Message ID | 1425025201-15926-17-git-send-email-k.kozlowski@samsung.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> X-Original-To: patchwork-linux-arm@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 03236BF440 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 27 Feb 2015 08:34:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3857C201E4 for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 27 Feb 2015 08:34:00 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 62B2F201BC for <patchwork-linux-arm@patchwork.kernel.org>; Fri, 27 Feb 2015 08:33:59 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YRGGU-0005ii-W5; Fri, 27 Feb 2015 08:27:18 +0000 Received: from mailout1.w1.samsung.com ([210.118.77.11]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YRGAj-0000Ay-1p for linux-arm-kernel@lists.infradead.org; Fri, 27 Feb 2015 08:21:28 +0000 Received: from eucpsbgm2.samsung.com (unknown [203.254.199.245]) 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 <0NKF00CFO8PMWO70@mailout1.w1.samsung.com> for linux-arm-kernel@lists.infradead.org; Fri, 27 Feb 2015 08:24:58 +0000 (GMT) X-AuditID: cbfec7f5-b7fc86d0000066b7-c3-54f0284f9449 Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm2.samsung.com (EUCPMTA) with SMTP id 30.97.26295.F4820F45; Fri, 27 Feb 2015 08:18:23 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NKF007VV8HM7X70@eusync1.samsung.com>; Fri, 27 Feb 2015 08:20:51 +0000 (GMT) From: Krzysztof Kozlowski <k.kozlowski@samsung.com> To: Sebastian Reichel <sre@kernel.org>, Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>, David Woodhouse <dwmw2@infradead.org>, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, "Rafael J. Wysocki" <rjw@rjwysocki.net>, Len Brown <lenb@kernel.org>, Jiri Kosina <jkosina@suse.cz>, David Herrmann <dh.herrmann@googlemail.com>, Cezary Jackiewicz <cezary.jackiewicz@gmail.com>, Darren Hart <dvhart@infradead.org>, Support Opensource <support.opensource@diasemi.com>, Milo Kim <milo.kim@ti.com>, Julian Andres Klode <jak@jak-linux.org>, Marc Dietrich <marvin24@gmx.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, 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 <linus.walleij@linaro.org>, Samuel Ortiz <sameo@linux.intel.com>, Lee Jones <lee.jones@linaro.org>, linux-arm-kernel@lists.infradead.org, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, Daniel Mack <daniel@zonque.org>, Haojian Zhuang <haojian.zhuang@gmail.com>, Robert Jarzmik <robert.jarzmik@free.fr> Subject: [PATCH v5 16/20] x86/olpc/xo15/sci: Use newly added power_supply_put API Date: Fri, 27 Feb 2015 09:19:57 +0100 Message-id: <1425025201-15926-17-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1425025201-15926-1-git-send-email-k.kozlowski@samsung.com> References: <1425025201-15926-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAAyWRfSzUcRzH+97v4e6s029H/FKzsh6k5SGtPlqTth6+1VpZNEnq4obNHe6w pC2jVshTwjKJ0HmWEyMPlRAO6WxWC02n0uXhPKVwSue/9+e11/vz+ePDI4RNpAUvQBoqlklF gVa0Ealaftu3+4y1zs1en2MMid06DuS3x5MQrdeScH9kkoCGrgUu5PWZQVyuPaQUpRIQk1dB Q2/5fkivNIenU49pqM/KI+HnqAN0R49x4fNcK4K64XEaHiwpOKBoSkKg1PRT8HH6FwV9L7Jo mEloQRA7m0lDWcsgF2Lf5SJQLJSToH6Vs9IY/0vDYGcrDSUNowR0qdQUZI6ZgCqeAlV9KDTe fk9AlTKNgN/PNJTLdlw4bYeHmt6QOKl8hsJ1mYNcrJvyxl+TU7m4qtAGj2gVFFYWx9J4oL+B xhM9PVyc3eGKXz4qXRHyb+LWewMk/pGySJ/d4Gl00FccGBAultk5XzHyL1FHUcH93GsFqfmc KNRIxyE+j2X2svrvndzVbMb2DlWscCOekClAbGPzLGd1SOSwM7mfDA2acWSrFPkGy5Rp47Ov yxIMFsGoEasZ6TDsMmHOscnRedT/TDLb2IxFrYELGMzW1yg4q/cs2Y62VIPDX+ET+ocGR8gc Zyty51EyEuSgNcVovTjMJ1h+1U+yx1YuksjDpH62PkESJVr9+VwtKmg70IwYHrJaK8Cszk1I icLlEZJmxPIIK1MBGp50Ewp8RRHXxbKgy7KwQLG8GXF4fIso9MRcx3c6sXXWwZGez/a45WWJ PoT0V8pOJat8xrwqd7XP1wYcdYo81DVh3ab1oe8cvuGybBpTFnxpXVpNFLum6NvpMEGk2aYv 0pTN7ncvehwr2ajWZFTZIe/qfee3TJT+ofqOlLo7G18w99x50q9agnT6HQPPlZoQqYlJetrs kqulFSn3FznYEDK56B8lcuK90QIAAA== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150227_002121_303715_EFF3011D X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.0 (-----) Cc: Krzysztof Kozlowski <k.kozlowski@samsung.com>, Thomas Gleixner <tglx@linutronix.de>, Kyungmin Park <kyungmin.park@samsung.com>, Pavel Machek <pavel@ucw.cz>, Marek Szyprowski <m.szyprowski@samsung.com> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 |
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); } }