mfd: ab8500: Pass AB8500 IRQ to debugfs code by resource
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 12 Apr 2013 15:02:09 +0000 (17:02 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 16 May 2013 22:42:31 +0000 (00:42 +0200)
commit6999181eecb11863b78030c68037a9f851522735
treefb0efde78f52e36a6493ab71cb0f387e85997a97
parent33a0d1907fb442cd59b8e2eb83be79c4ab1cb791
mfd: ab8500: Pass AB8500 IRQ to debugfs code by resource

The AB8500 debug code which was merged in parallell with the
multiplatform work incidentally introduced a new instance using
the <mach/irqs.h> header which is now deleted, causing this
build regression:

drivers/mfd/ab8500-debugfs.c:95:23:
fatal error: mach/irqs.h: No such file or directory
compilation terminated.
make[4]: *** [drivers/mfd/ab8500-debugfs.o] Error 1

The code most certainly never worked with device tree either
since that does not rely on this kind of hard-coded interrupt
numbers.

Fix the problem at the root by passing it as a named resource
from the ab8500-core driver. Use an untyped resource to
stop the MFD core from remapping this IRQ relative to the
AB8500 irqdomain.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/ab8500-core.c
drivers/mfd/ab8500-debugfs.c