From patchwork Fri Feb 15 12:45:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 14881 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 2AFAA23E2E for ; Fri, 15 Feb 2013 12:47:18 +0000 (UTC) Received: from mail-ve0-f173.google.com (mail-ve0-f173.google.com [209.85.128.173]) by fiordland.canonical.com (Postfix) with ESMTP id C8CE7A197CA for ; Fri, 15 Feb 2013 12:47:17 +0000 (UTC) Received: by mail-ve0-f173.google.com with SMTP id oz10so3013928veb.18 for ; Fri, 15 Feb 2013 04:47:17 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=d8K+mkf8T98U3+4fOUodht3gYeGOY8ljVmwiismCN4w=; b=pnnFMu/+DAsFJ+g5s48TTNEl+k9e9R6JwwTKGHumtp5BjvFaQc/4zspv4OXAcjtMpT NAU1X2UnMs6RMz7+Fr/VckGCEogPrWAs0xD105lNVe/DCwpuXfjbc8i+jMS9ML5NkXHN OFQms6fN9FnpwU42kSmRTov5OeVVSjrDsiwS07n2D0E1PSoBh7ZJ+THUwe6aXGwfPYew NjuhYSWXgkbjb1EfxMN755MRhmFQIH4eE9IciM2+oTtng1EmrndyOyKR9wdlTUXei/vT 4Qdo1sscqqSz3sKu2C6gwU2m3/2RYiIr3/sD61JW9hRtAKQfschyxzJjEgPLQiPIjEI1 BkJw== X-Received: by 10.52.175.66 with SMTP id by2mr2634664vdc.53.1360932437335; Fri, 15 Feb 2013 04:47:17 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.221.4.5 with SMTP id oa5csp10918vcb; Fri, 15 Feb 2013 04:47:10 -0800 (PST) X-Received: by 10.194.156.170 with SMTP id wf10mr4001852wjb.25.1360932423316; Fri, 15 Feb 2013 04:47:03 -0800 (PST) Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com [209.85.212.176]) by mx.google.com with ESMTPS id hp2si10409984wjb.254.2013.02.15.04.47.02 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:47:03 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.176 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=209.85.212.176; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.176 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-wi0-f176.google.com with SMTP id hm14so1097738wib.9 for ; Fri, 15 Feb 2013 04:47:02 -0800 (PST) X-Received: by 10.194.119.68 with SMTP id ks4mr3903875wjb.3.1360932422843; Fri, 15 Feb 2013 04:47:02 -0800 (PST) Received: from localhost.localdomain (cpc34-aztw25-2-0-cust250.18-1.cable.virginmedia.com. [86.16.136.251]) by mx.google.com with ESMTPS id bs6sm5133904wib.4.2013.02.15.04.47.01 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 15 Feb 2013 04:47:02 -0800 (PST) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: arnd@arndb.de, linus.walleij@stericsson.com, cbouatmailru@gmail.com, sameo@linux.intel.com, Rupesh Kumar , Lee Jones Subject: [PATCH 37/40] pm2301-charger: Reference put missing after access Date: Fri, 15 Feb 2013 12:45:07 +0000 Message-Id: <1360932310-30065-38-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> References: <1360932310-30065-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkjevRcoBe2LObeounq05VBfIKVnXPK17s5druXHgq3pHoy6yDoF68GB3Mfsp7nM9cRnGiK From: Rupesh Kumar Added missing pm_runtime_put_sync in read & write. Signed-off-by: Rupesh Kumar Signed-off-by: Lee Jones Reviewed-by: Sandeep TRIPATHY Reviewed-by: Philippe LANGLAIS --- drivers/power/pm2301_charger.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/power/pm2301_charger.c b/drivers/power/pm2301_charger.c index ea9870d..af12af8 100644 --- a/drivers/power/pm2301_charger.c +++ b/drivers/power/pm2301_charger.c @@ -139,6 +139,8 @@ static int pm2xxx_reg_read(struct pm2xxx_charger *pm2, int reg, u8 *val) else ret = 0; + pm_runtime_put_sync(pm2->dev); + return ret; } @@ -156,6 +158,8 @@ static int pm2xxx_reg_write(struct pm2xxx_charger *pm2, int reg, u8 val) else ret = 0; + pm_runtime_put_sync(pm2->dev); + return ret; }