Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

video: nuc900fb: fix to pass correct device identity to request_irq()

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>

authored by

Wei Yongjun and committed by
Tomi Valkeinen
8a896baa f64279c8

+1 -2
+1 -2
drivers/video/nuc900fb.c
··· 587 587 fbinfo->flags = FBINFO_FLAG_DEFAULT; 588 588 fbinfo->pseudo_palette = &fbi->pseudo_pal; 589 589 590 - ret = request_irq(irq, nuc900fb_irqhandler, 0, 591 - pdev->name, fbinfo); 590 + ret = request_irq(irq, nuc900fb_irqhandler, 0, pdev->name, fbi); 592 591 if (ret) { 593 592 dev_err(&pdev->dev, "cannot register irq handler %d -err %d\n", 594 593 irq, ret);