mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
drivers/mailbox/omap: make mbox->irq signed for error handling
There is a bug in omap2_mbox_probe() where we try do:
mbox->irq = platform_get_irq(pdev, info->irq_id);
if (mbox->irq < 0) {
The problem is that mbox->irq is unsigned so the error handling doesn't
work. I've changed it to a signed integer.
Signed-off-by: Dan Carpenter <[email protected]>
Cc: Suman Anna <[email protected]>
Cc: Greg Kroah-Hartman <[email protected]>
Cc: Omar Ramirez Luna <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
0c79a8e29b
commit
4a102b4d14
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ struct omap_mbox_queue {
|
|||
|
||||
struct omap_mbox {
|
||||
const char *name;
|
||||
unsigned int irq;
|
||||
int irq;
|
||||
struct omap_mbox_queue *txq, *rxq;
|
||||
struct omap_mbox_ops *ops;
|
||||
struct device *dev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue