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>
This commit is contained in:
Wei Yongjun 2013-07-16 08:07:14 +08:00 коммит произвёл Tomi Valkeinen
Родитель f64279c8a3
Коммит 8a896baafc
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -587,8 +587,7 @@ static int nuc900fb_probe(struct platform_device *pdev)
fbinfo->flags = FBINFO_FLAG_DEFAULT; fbinfo->flags = FBINFO_FLAG_DEFAULT;
fbinfo->pseudo_palette = &fbi->pseudo_pal; fbinfo->pseudo_palette = &fbi->pseudo_pal;
ret = request_irq(irq, nuc900fb_irqhandler, 0, ret = request_irq(irq, nuc900fb_irqhandler, 0, pdev->name, fbi);
pdev->name, fbinfo);
if (ret) { if (ret) {
dev_err(&pdev->dev, "cannot register irq handler %d -err %d\n", dev_err(&pdev->dev, "cannot register irq handler %d -err %d\n",
irq, ret); irq, ret);