From patchwork Fri Jul 12 13:20:23 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2826928 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 13FF8C0AB2 for ; Fri, 12 Jul 2013 13:20:28 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DB8E520107 for ; Fri, 12 Jul 2013 13:20:26 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF0B7200EA for ; Fri, 12 Jul 2013 13:20:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964789Ab3GLNUZ (ORCPT ); Fri, 12 Jul 2013 09:20:25 -0400 Received: from mail-bk0-f52.google.com ([209.85.214.52]:45483 "EHLO mail-bk0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932950Ab3GLNUY (ORCPT ); Fri, 12 Jul 2013 09:20:24 -0400 Received: by mail-bk0-f52.google.com with SMTP id d7so3799934bkh.25 for ; Fri, 12 Jul 2013 06:20:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=P5/ls5S1rhgrpTXbJ649aVT1oK4xi0wbHPBzTqusv1A=; b=WLDkOnLhvSEDlwv/2Z5ZRmHTJp98JsiG2Jujh8Z3SwuuIiiY7wd3WMPTuhDEO/hxJs qbDIjiMcbhvdzwhzC5nb12CQgS7Sl3DFdHj8oPuh6swHYGdeH2ymWQEbws6CDiHm4DXV WUrBghPW4sRi3LR7USdbFuGZMbt1mYJAbLQnuJS600k3Ooz723irMZvuMBewOlVEmq1X 0ngHA09rrkmihNPGS1jdrItCmU5b1bq5hyPcbIsxryhYBJ+DWw5V/dl4xmpWEO7Khdfv rJviWjmnuhJXBWog9i5Vs6zaRhILxypGokMV2pQyBLa8r9LZZ0k9eBB6yvNdq1eSppG0 WxIg== MIME-Version: 1.0 X-Received: by 10.204.189.80 with SMTP id dd16mr6274722bkb.126.1373635223204; Fri, 12 Jul 2013 06:20:23 -0700 (PDT) Received: by 10.205.122.72 with HTTP; Fri, 12 Jul 2013 06:20:23 -0700 (PDT) Date: Fri, 12 Jul 2013 21:20:23 +0800 Message-ID: Subject: [PATCH] video: nuc900fb: fix to pass correct device identity to free_irq() From: Wei Yongjun To: mcuos.com@gmail.com, plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: yongjun_wei@trendmicro.com.cn, linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun free_irq() expects the same device identity that was passed to corresponding request_irq(), otherwise the IRQ is not freed. Signed-off-by: Wei Yongjun --- drivers/video/nuc900fb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 8c527e5..ebd5501 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -661,7 +661,7 @@ release_clock: clk_disable(fbi->clk); clk_put(fbi->clk); release_irq: - free_irq(irq, fbi); + free_irq(irq, fbinfo); release_regs: iounmap(fbi->io); release_mem_region: @@ -702,7 +702,7 @@ static int nuc900fb_remove(struct platform_device *pdev) iounmap(fbi->io); irq = platform_get_irq(pdev, 0); - free_irq(irq, fbi); + free_irq(irq, fbinfo); release_resource(fbi->mem); kfree(fbi->mem);