From patchwork Mon Jan 17 08:33:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 483271 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p0H8XDDL017411 for ; Mon, 17 Jan 2011 08:33:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753079Ab1AQIdM (ORCPT ); Mon, 17 Jan 2011 03:33:12 -0500 Received: from mail-yx0-f174.google.com ([209.85.213.174]:62820 "EHLO mail-yx0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753029Ab1AQIdM (ORCPT ); Mon, 17 Jan 2011 03:33:12 -0500 Received: by yxt3 with SMTP id 3so1834121yxt.19 for ; Mon, 17 Jan 2011 00:33:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=E8EGTShTQ5Ibcs6pKTcZqVeYEzTUCq03bXsnQr1sfrk=; b=J+GixgxqqbzQ5qYbEcBCWzfMWjA94UeQ54tEHKRohuvyVkmB8whGiictSUrOpSB+Ns AE1kzRVyhTMC55ZuGjiHgurVoVIoXrYT3ZjgqZidMqYUY2mUPzgLGLYCyiimrJGJQ428 bvAULsd7NVhH99Nb0+NJG1c/hvbqaAm33b964= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=he2/XElxxw4L+CqlUpVAnzKrnSNcUTMkWgzXKe5jDqvT5angDJgdZZND1AfPIHp+wy mYY3c+HeEc+JUpmVa3CT1f7Xnwv5mALp+9Kv5ZrfgxYYNMiPHP5tKgXWW1f+55v0TN3C a13teZ/KjsdRIFonR/S5mJU/pcnvRgAnHaJ0U= Received: by 10.151.114.2 with SMTP id r2mr3817410ybm.366.1295253191065; Mon, 17 Jan 2011 00:33:11 -0800 (PST) Received: from [192.168.100.50] (60-251-136-127.HINET-IP.hinet.net [60.251.136.127]) by mx.google.com with ESMTPS id k2sm2504181ybj.10.2011.01.17.00.33.08 (version=SSLv3 cipher=RC4-MD5); Mon, 17 Jan 2011 00:33:10 -0800 (PST) Subject: [PATCH 2/2] video: nuc900fb: properly free resources in nuc900fb_remove From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Wan ZongShun , linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, Andrew Morton , Wang Qiang In-Reply-To: <1295253143.12890.3.camel@mola> References: <1295253143.12890.3.camel@mola> Date: Mon, 17 Jan 2011 16:33:42 +0800 Message-Id: <1295253222.12890.4.camel@mola> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Mon, 17 Jan 2011 08:33:13 +0000 (UTC) diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 29ef92f..f838d9e 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -696,6 +696,8 @@ static int nuc900fb_remove(struct platform_device *pdev) nuc900fb_stop_lcd(fbinfo); msleep(1); + unregister_framebuffer(fbinfo); + nuc900fb_cpufreq_deregister(fbi); nuc900fb_unmap_video_memory(fbinfo); iounmap(fbi->io);