]> git.baikalelectronics.ru Git - kernel.git/commit
arm/imx: fix return type of callback passed to of_irq_init()
authorShawn Guo <shawn.guo@linaro.org>
Thu, 1 Dec 2011 06:35:29 +0000 (14:35 +0800)
committerShawn Guo <shawn.guo@linaro.org>
Thu, 1 Dec 2011 08:11:55 +0000 (16:11 +0800)
commit41d6e733e8d3c7f00a1357176ec4509378f10b5b
treeb2e33b58cc6b6220645f05889a6f8e10dbbfe82f
parent553ff3bd102159afa3b326ca269173aa80dfe107
arm/imx: fix return type of callback passed to of_irq_init()

The of_irq_init() expects the callback passed by .data of of_device_id
return 'int' instead of 'void'.  This patch fixes it to have
irq_init_cb() return the correct value, and in turn have the secondary
interrupt controller (gpio in this case) initialized properly and also
eliminate the error message 'of_irq_init: children remain, but no
parents' which was overlooked before.

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/mach-imx6q.c
arch/arm/mach-mx5/imx51-dt.c
arch/arm/mach-mx5/imx53-dt.c