From patchwork Sun Jul 29 08:11:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Devendra Naga X-Patchwork-Id: 1252121 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 52D1BDF25A for ; Sun, 29 Jul 2012 08:20:37 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1SvObU-0005HL-4J; Sun, 29 Jul 2012 08:11:56 +0000 Received: from mail-pb0-f49.google.com ([209.85.160.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1SvObO-0005H5-6N for linux-arm-kernel@lists.infradead.org; Sun, 29 Jul 2012 08:11:50 +0000 Received: by pbbrq13 with SMTP id rq13so8548454pbb.36 for ; Sun, 29 Jul 2012 01:11:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer; bh=4ytl6lGjKLndpn8ti8TXMQaDO7VCW2vngSNDe6juPUw=; b=uaqhwSGa8y969jBVlJ3GAawsWu0bFDZ8ac1ekX7BW9GYl11iqh7zJThgdkK/LlcCM/ sd4UWCD/34T4dMdW4DaNLwwa5IaoiC32sGbfuOvgega44Ebrqki4eZrSN5dbxcNRRd3m EqrnpKkpmZkzduwvN0kOfJxLGYpLl/BaJkc0/1N2yAv3Fg7zF6zMIFUXrXdNNTMuABp9 KNWfLrWm+k9JTg2cGKmLh2qVCR1npYvBToEYzJk311XZGfIIgrBTWsDGsJw5jjg/TUgH EVAisPsOMGilSpYHI3xe2geDT8NxvWKxhJQKQA73l9tdvmwKlOavqBRWEU7rVyG11HQK ASwg== Received: by 10.66.75.228 with SMTP id f4mr16587430paw.52.1343549507322; Sun, 29 Jul 2012 01:11:47 -0700 (PDT) Received: from localhost.localdomain ([122.172.2.181]) by mx.google.com with ESMTPS id rd7sm5450231pbc.70.2012.07.29.01.11.44 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 29 Jul 2012 01:11:46 -0700 (PDT) From: Devendra Naga To: Linus Walleij , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] pinctrl-sirf: remove devm_kfree at error path Date: Sun, 29 Jul 2012 13:56:38 +0545 Message-Id: <1343549498-2217-1-git-send-email-develkernel412222@gmail.com> X-Mailer: git-send-email 1.7.9.5 X-Spam-Note: CRM114 invocation failed X-Spam-Note: SpamAssassin invocation failed Cc: Devendra Naga X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org the pointers that are allocated with devm_kzalloc will be automatically freed, at unload time. Signed-off-by: Devendra Naga --- drivers/pinctrl/pinctrl-sirf.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/pinctrl/pinctrl-sirf.c b/drivers/pinctrl/pinctrl-sirf.c index 2aae8a8..7fca6ce 100644 --- a/drivers/pinctrl/pinctrl-sirf.c +++ b/drivers/pinctrl/pinctrl-sirf.c @@ -1217,7 +1217,6 @@ out_no_rsc_remap: iounmap(spmx->gpio_virtbase); out_no_gpio_remap: platform_set_drvdata(pdev, NULL); - devm_kfree(&pdev->dev, spmx); return ret; }