Skip to content

Commit

Permalink
video: nuc900fb: fix to pass correct device identity to request_irq()
Browse files Browse the repository at this point in the history
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 <yongjun_wei@trendmicro.com.cn>
Acked-by: Wan Zongshun <mcuos.com@gmail.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
  • Loading branch information
Wei Yongjun authored and Tomi Valkeinen committed Jul 26, 2013
1 parent f64279c commit 8a896ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/video/nuc900fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8a896ba

Please sign in to comment.