From patchwork Wed Apr 7 16:03:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Felipe Balbi X-Patchwork-Id: 91057 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o37G53Cw005429 for ; Wed, 7 Apr 2010 16:05:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932430Ab0DGQEq (ORCPT ); Wed, 7 Apr 2010 12:04:46 -0400 Received: from smtp.nokia.com ([192.100.105.134]:62299 "EHLO mgw-mx09.nokia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758049Ab0DGQEp (ORCPT ); Wed, 7 Apr 2010 12:04:45 -0400 Received: from esebh105.NOE.Nokia.com (esebh105.ntc.nokia.com [172.21.138.211]) by mgw-mx09.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o37G4hCj006792 for ; Wed, 7 Apr 2010 11:04:44 -0500 Received: from esebh102.NOE.Nokia.com ([172.21.138.183]) by esebh105.NOE.Nokia.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Apr 2010 19:04:43 +0300 Received: from mgw-da02.ext.nokia.com ([147.243.128.26]) by esebh102.NOE.Nokia.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Apr 2010 19:04:42 +0300 Received: from localhost.localdomain (esdhcp04088.research.nokia.com [172.21.40.88]) by mgw-da02.ext.nokia.com (Switch-3.3.3/Switch-3.3.3) with ESMTP id o37G4YMk015130; Wed, 7 Apr 2010 19:04:38 +0300 From: felipe.balbi@nokia.com To: Linux OMAP Mailing List Cc: Felipe Balbi Subject: [RFC PATCH 02/37] cbus: NULL global variable on exit Date: Wed, 7 Apr 2010 19:03:53 +0300 Message-Id: <1270656268-7034-3-git-send-email-felipe.balbi@nokia.com> X-Mailer: git-send-email 1.7.0.rc0.33.g7c3932 In-Reply-To: <1270656268-7034-1-git-send-email-felipe.balbi@nokia.com> References: <1270656268-7034-1-git-send-email-felipe.balbi@nokia.com> X-OriginalArrivalTime: 07 Apr 2010 16:04:42.0562 (UTC) FILETIME=[08C80A20:01CAD66C] X-Nokia-AV: Clean Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Wed, 07 Apr 2010 16:05:04 +0000 (UTC) diff --git a/drivers/cbus/cbus.c b/drivers/cbus/cbus.c index c0b4248..f454e77 100644 --- a/drivers/cbus/cbus.c +++ b/drivers/cbus/cbus.c @@ -279,7 +279,9 @@ static void __exit cbus_bus_remove(struct platform_device *pdev) gpio_free(chost->dat_gpio); gpio_free(chost->clk_gpio); + kfree(chost); + cbus_host = NULL; } static struct platform_driver cbus_driver = {