From patchwork Tue Jul 16 00:07:14 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2827802 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id DF7CA9F967 for ; Tue, 16 Jul 2013 00:08:07 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id EEE80201CB for ; Tue, 16 Jul 2013 00:08:06 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 50E71201C4 for ; Tue, 16 Jul 2013 00:08:05 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uyso0-0001ps-FJ; Tue, 16 Jul 2013 00:07:48 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uysny-0004Gz-36; Tue, 16 Jul 2013 00:07:46 +0000 Received: from mail-bk0-x230.google.com ([2a00:1450:4008:c01::230]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Uysnt-0004Gf-00 for linux-arm-kernel@lists.infradead.org; Tue, 16 Jul 2013 00:07:43 +0000 Received: by mail-bk0-f48.google.com with SMTP id jf17so16813bkc.7 for ; Mon, 15 Jul 2013 17:07:14 -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=CfzA0YUHTizfSg91VHluNND9DZsD0MsVXlQDQWJqhFM=; b=wQsAMY/YcLlybs2KK8Q3GRb1QYK0MFTUtAM3ZzTpECi+UHKmj5bqJJD8gYvq4qKypL cVo/mXnlW9TIGcqjM5f1sQGyk3vp4Gxs7yzGeXbthl3zlULGse0NZqU3acEI+fqq6E2X 0c7C9qio0gCx1aNSbjnEZextr0+Csdl/OhghOuVVcXi4z6pMsTEvcq85Jt0qpQBCHAg9 5U5rDj6ywb1QiTPd28ArL5nScFuY0hDkyZt2DwtQ9wqO34G5moNWPAdpyv1KCrlY9LbN 7gR1qTEDGkuO2836pdrAKAwfh8jwvH6raq2Cqzy6HvQEYnRTLyNAYan9o/Nuu2Y2+nOC ROxA== MIME-Version: 1.0 X-Received: by 10.204.239.132 with SMTP id kw4mr8188332bkb.39.1373933234348; Mon, 15 Jul 2013 17:07:14 -0700 (PDT) Received: by 10.205.122.72 with HTTP; Mon, 15 Jul 2013 17:07:14 -0700 (PDT) Date: Tue, 16 Jul 2013 08:07:14 +0800 Message-ID: Subject: [PATCH] video: nuc900fb: fix to pass correct device identity to request_irq() From: Wei Yongjun To: mcuos.com@gmail.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20130715_200741_261192_F4FF5D33 X-CRM114-Status: UNSURE ( 8.71 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.0 (--) Cc: yongjun_wei@trendmicro.com.cn, tomi.valkeinen@ti.com, plagnioj@jcrosoft.com, linux-fbdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.5 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable 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 The IRQ handler nuc900fb_irqhandler() use dev_id as a type of struct nuc900fb_info *, so we should pass fbi as the device identity to request_irq(). Signed-off-by: Wei Yongjun Acked-by: Wan Zongshun --- Was 'video: nuc900fb: fix to pass correct device identity to free_irq()' --- drivers/video/nuc900fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/nuc900fb.c b/drivers/video/nuc900fb.c index 8c527e5..796e511 100644 --- a/drivers/video/nuc900fb.c +++ b/drivers/video/nuc900fb.c @@ -587,8 +587,7 @@ static int nuc900fb_probe(struct platform_device *pdev) fbinfo->flags = FBINFO_FLAG_DEFAULT; fbinfo->pseudo_palette = &fbi->pseudo_pal; - ret = request_irq(irq, nuc900fb_irqhandler, 0, - pdev->name, fbinfo); + ret = request_irq(irq, nuc900fb_irqhandler, 0, pdev->name, fbi); if (ret) { dev_err(&pdev->dev, "cannot register irq handler %d -err %d\n", irq, ret);