Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296818
b: refs/heads/master
c: c7a1fcf
h: refs/heads/master
v: v3
  • Loading branch information
Jonghwan Choi authored and Samuel Ortiz committed Mar 6, 2012
1 parent 0109daa commit 5d4aa44
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3ebb30aaeb2a30d69b9db564d93bf3486139c12
refs/heads/master: c7a1fcf3b1660dbccdc2faf9e506e0264b17c4ce
14 changes: 11 additions & 3 deletions trunk/drivers/mfd/s5m-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,10 @@ int s5m_irq_resume(struct s5m87xx_dev *s5m87xx)
s5m8767_irq_thread(s5m87xx->irq_base, s5m87xx);
break;
default:
break;
dev_err(s5m87xx->dev,
"Unknown device type %d\n",
s5m87xx->device_type);
return -EINVAL;

}
}
Expand Down Expand Up @@ -444,7 +447,9 @@ int s5m_irq_init(struct s5m87xx_dev *s5m87xx)
}
break;
default:
break;
dev_err(s5m87xx->dev,
"Unknown device type %d\n", s5m87xx->device_type);
return -EINVAL;
}

if (!s5m87xx->ono)
Expand All @@ -467,12 +472,15 @@ int s5m_irq_init(struct s5m87xx_dev *s5m87xx)
IRQF_ONESHOT, "s5m87xx-ono", s5m87xx);
break;
default:
ret = -EINVAL;
break;
}

if (ret)
if (ret) {
dev_err(s5m87xx->dev, "Failed to request IRQ %d: %d\n",
s5m87xx->ono, ret);
return ret;
}

return 0;
}
Expand Down

0 comments on commit 5d4aa44

Please sign in to comment.