From patchwork Fri Jul 12 13:20:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2826927 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 C5E3DC0AB2 for ; Fri, 12 Jul 2013 13:20:10 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 50997200EA for ; Fri, 12 Jul 2013 13:20:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F738200D7 for ; Fri, 12 Jul 2013 13:20:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964776Ab3GLNUG (ORCPT ); Fri, 12 Jul 2013 09:20:06 -0400 Received: from mail-bk0-f47.google.com ([209.85.214.47]:43856 "EHLO mail-bk0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932950Ab3GLNUF (ORCPT ); Fri, 12 Jul 2013 09:20:05 -0400 Received: by mail-bk0-f47.google.com with SMTP id jg1so3735295bkc.6 for ; Fri, 12 Jul 2013 06:20:03 -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=StD+3aHFOI5DYRkku26Mta99zf41wHEb3kPz2oS9KdA=; b=rvv5d9x0eOugi4LCcQasZ5pPq7NHPqLwJ2hP/fjBZgVADKfdJEXlaJ/XOg7vijoIL9 FW5nXeVEXoZucGoOweBG2xhwjENdLRx8/9BeijkWKoL1wGQW0+XIXEo6JcIkxsC1MPxs k49xvefFy3kcnJtaRAU0TL8xkhlw+blglyGaiFBUVeHQzCB2vND/b6pqq04fQPDch2x/ DOWGlQSaeFi+8LOUIL1FCNjvdRwNQD3zACUTbgM5N3n5vjICMCQKIQUTbpHFjXgjN88u RFey93KdnJyOv0vwFeAQDCWtGSvJf05YtqaKHteA0fMVyVBL6po9a+FcNAZHC0/zE78R J9uA== MIME-Version: 1.0 X-Received: by 10.204.224.77 with SMTP id in13mr6477439bkb.24.1373635203518; Fri, 12 Jul 2013 06:20:03 -0700 (PDT) Received: by 10.205.122.72 with HTTP; Fri, 12 Jul 2013 06:20:03 -0700 (PDT) Date: Fri, 12 Jul 2013 21:20:03 +0800 Message-ID: Subject: [PATCH] video: sh7760fb: fix to pass correct device identity to free_irq() From: Wei Yongjun To: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com Cc: yongjun_wei@trendmicro.com.cn, 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/sh7760fb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 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/sh7760fb.c b/drivers/video/sh7760fb.c index a8c6c43..1265b25 100644 --- a/drivers/video/sh7760fb.c +++ b/drivers/video/sh7760fb.c @@ -567,7 +567,7 @@ static int sh7760fb_remove(struct platform_device *dev) fb_dealloc_cmap(&info->cmap); sh7760fb_free_mem(info); if (par->irq >= 0) - free_irq(par->irq, par); + free_irq(par->irq, &par->vsync); iounmap(par->base); release_mem_region(par->ioarea->start, resource_size(par->ioarea)); framebuffer_release(info);