aboutsummaryrefslogtreecommitdiff
path: root/sound/soc/sh/fsi.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-12 12:59:05 +0000
committerMark Brown <broonie@opensource.wolfsonmicro.com>2010-01-12 12:59:05 +0000
commit163849ea9b4c5d50fbd324692461983d18faadad (patch)
tree7176a18fea53560eb4092aa103d94a266ab4e60d /sound/soc/sh/fsi.c
parent2138301e1687bd4f22aa2b4df4829b6ffdae19bc (diff)
parent5ee518ecbcb5934e284ea51a19a939c891f5f7ea (diff)
Merge branch 'for-2.6.33' into for-2.6.34
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r--sound/soc/sh/fsi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index 123cd6f45e0..5f9f2693f4e 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -903,7 +903,7 @@ static int fsi_probe(struct platform_device *pdev)
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
irq = platform_get_irq(pdev, 0);
- if (!res || !irq) {
+ if (!res || (int)irq <= 0) {
dev_err(&pdev->dev, "Not enough FSI platform resources.\n");
ret = -ENODEV;
goto exit;