summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorSongjun Wu <songjun.wu@microchip.com>2016-08-24 05:49:28 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-09-06 16:42:36 -0300
commit846c4a7b3aebab9d354aa3fc6b2b8770a453427d (patch)
tree7f13a8019f22c21cccb8682cb25f311e1a070380 /drivers
parentee242096598df01fcdeb709ddf765bb614d93afb (diff)
[media] atmel-isc: remove the warning
Replace the 'IS_ERR_VALUE(irq)' with 'ret < 0' in function 'atmel_isc_probe'. Reported-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Songjun Wu <songjun.wu@microchip.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/media/platform/atmel/atmel-isc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/atmel/atmel-isc.c b/drivers/media/platform/atmel/atmel-isc.c
index f0c2512d27f0..db6773de92f0 100644
--- a/drivers/media/platform/atmel/atmel-isc.c
+++ b/drivers/media/platform/atmel/atmel-isc.c
@@ -1358,7 +1358,7 @@ static int atmel_isc_probe(struct platform_device *pdev)
}
irq = platform_get_irq(pdev, 0);
- if (IS_ERR_VALUE(irq)) {
+ if (irq < 0) {
ret = irq;
dev_err(dev, "failed to get irq: %d\n", ret);
return ret;