2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 03:33:59 +08:00
linux-next/drivers/mailbox
Dan Carpenter 4a102b4d14 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 <dan.carpenter@oracle.com>
Cc: Suman Anna <s-anna@ti.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Omar Ramirez Luna <omar.ramirez@copitl.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2014-01-23 16:36:53 -08:00
..
Kconfig mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
mailbox-omap1.c mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
mailbox-omap2.c mailbox: remove unnecessary platform_set_drvdata() 2013-09-18 12:02:00 -07:00
Makefile mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
omap-mailbox.c mailbox/omap: move the OMAP mailbox framework to drivers 2013-06-11 11:41:51 -05:00
omap-mbox.h drivers/mailbox/omap: make mbox->irq signed for error handling 2014-01-23 16:36:53 -08:00
pl320-ipc.c mailbox, pl320-ipc: remove __init from probe function 2013-03-04 14:23:11 +01:00