Commit 5b188dca authored by Dirk Behme's avatar Dirk Behme Committed by Kevin Hilman

ARM: DAVINCI: Fix warnings in davincifb.c

Fix warnings

drivers/video/davincifb.c:823: warning: ignoring return value of
'copy_to_user', declared with attribute warn_unused_result
drivers/video/davincifb.c: In function 'davincifb_probe':
drivers/video/davincifb.c:1643: warning: 'deprecated_irq_flag' is
deprecated (declared at include/linux/interrupt.h:66)
Signed-off-by: default avatarDirk Behme <dirk.behme@gmail.com>
Signed-off-by: default avatarKevin Hilman <khilman@mvista.com>
parent 18781064
...@@ -820,7 +820,8 @@ static int davincifb_ioctl(struct fb_info *info, unsigned int cmd, ...@@ -820,7 +820,8 @@ static int davincifb_ioctl(struct fb_info *info, unsigned int cmd,
break; break;
case FBIO_GETSTD: case FBIO_GETSTD:
std = ((dmparams.output << 16) | (dmparams.format)); //(NTSC <<16) | (COPOSITE); std = ((dmparams.output << 16) | (dmparams.format)); //(NTSC <<16) | (COPOSITE);
copy_to_user(argp, &std, sizeof(u_int32_t)); if (copy_to_user(argp, &std, sizeof(u_int32_t)))
return -EFAULT;
return 0; return 0;
break; break;
} }
...@@ -1640,7 +1641,7 @@ static int davincifb_probe(struct platform_device *pdev) ...@@ -1640,7 +1641,7 @@ static int davincifb_probe(struct platform_device *pdev)
} }
/* install our interrupt service routine */ /* install our interrupt service routine */
if (request_irq(IRQ_VENCINT, davincifb_isr, SA_SHIRQ, MODULE_NAME, if (request_irq(IRQ_VENCINT, davincifb_isr, IRQF_SHARED, MODULE_NAME,
dm)) { dm)) {
dev_err(dm->dev, MODULE_NAME dev_err(dm->dev, MODULE_NAME
": could not install interrupt service routine\n"); ": could not install interrupt service routine\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment