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: 2827801 Return-Path: X-Original-To: patchwork-linux-fbdev@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 380499F967 for ; Tue, 16 Jul 2013 00:07:26 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C6D06201CB for ; Tue, 16 Jul 2013 00:07:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A9C70201C4 for ; Tue, 16 Jul 2013 00:07:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755125Ab3GPAHQ (ORCPT ); Mon, 15 Jul 2013 20:07:16 -0400 Received: from mail-bk0-f48.google.com ([209.85.214.48]:63120 "EHLO mail-bk0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755082Ab3GPAHQ (ORCPT ); Mon, 15 Jul 2013 20:07:16 -0400 Received: by mail-bk0-f48.google.com with SMTP id jf17so16015bkc.21 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 Cc: plagnioj@jcrosoft.com, tomi.valkeinen@ti.com, 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.2 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 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(-) -- 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..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);