From patchwork Thu Jan 20 03:50:51 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: axel lin X-Patchwork-Id: 491001 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 p0K3pAKf023409 for ; Thu, 20 Jan 2011 03:51:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754978Ab1ATDuy (ORCPT ); Wed, 19 Jan 2011 22:50:54 -0500 Received: from mail-vw0-f46.google.com ([209.85.212.46]:44976 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754913Ab1ATDux (ORCPT ); Wed, 19 Jan 2011 22:50:53 -0500 Received: by vws16 with SMTP id 16so92067vws.19 for ; Wed, 19 Jan 2011 19:50:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:cc:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; bh=LfmT+WJeSLqpZPNFgjbnj6xOXH4pbTKbl5D4xw2juhs=; b=kyMhfZXHCcDz17eajjDbZSYA9d7TM07mBPOPLbxFYqRDQTTSaQitq8wTUON6NLGCnb /+BX81Thh6QiEo3UATm5/sDJJmugr0rw9ifua8z0iXQJRAsVijqe5BZ8yIp5nv59qVby 9GCgGEmmdT/iZQdUd1iwekhCHaHcveQ4vfZdk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:content-type:date:message-id:mime-version :x-mailer:content-transfer-encoding; b=WNCilkodV69ep5RJIy32dvOxGLsGgD4ikH51Rq8AuQrE9g3whyZv/doNqz8JIc6NS4 bJhrPUpMn1u89qwKzqyzcjffcrd9QKSnA6w714Vr6Nt/BSnskOxVAhxQJtH5BYTzwPYV +a30KhEEzNsdAMnAUBLOCKuO6wvXlR+4DceDY= Received: by 10.220.182.9 with SMTP id ca9mr404813vcb.162.1295495452266; Wed, 19 Jan 2011 19:50:52 -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 k39sm2587306vcr.26.2011.01.19.19.50.49 (version=SSLv3 cipher=RC4-MD5); Wed, 19 Jan 2011 19:50:51 -0800 (PST) Subject: [PATCH] video: da8xx-fb: fix fb_probe error path From: Axel Lin To: linux-kernel@vger.kernel.org Cc: Paul Mundt , linux-fbdev@vger.kernel.org, Sudhakar Rajashekhara Date: Thu, 20 Jan 2011 11:50:51 +0800 Message-Id: <1295495451.20884.3.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]); Thu, 20 Jan 2011 03:51:12 +0000 (UTC) diff --git a/drivers/video/da8xx-fb.c b/drivers/video/da8xx-fb.c index c265aed..520047a 100644 --- a/drivers/video/da8xx-fb.c +++ b/drivers/video/da8xx-fb.c @@ -1092,9 +1092,10 @@ static int __init fb_probe(struct platform_device *device) irq_freq: #ifdef CONFIG_CPU_FREQ + lcd_da8xx_cpufreq_deregister(par); +#endif err_cpu_freq: unregister_framebuffer(da8xx_fb_info); -#endif err_dealloc_cmap: fb_dealloc_cmap(&da8xx_fb_info->cmap);