mfd: db8500-prcmu: Fix irqdomain usage
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 20 Dec 2012 09:20:15 +0000 (10:20 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 Feb 2013 18:48:01 +0000 (10:48 -0800)
commit7422eb949449d1b069357b61825679349e18ff8e
treed90faf75583322ce80e10ab9ca82c5b51b95e621
parent15e81f0b10fc9d7d9be7af46b3e80bc8c361963c
mfd: db8500-prcmu: Fix irqdomain usage

commit 89d9b1c99374997d68910ba49d5b7df80e7f2061 upstream.

This fixes two issues with the DB8500 PRCMU irqdomain:
- You have to state the irq base 0 to get a linear domain
  for the DT case from irq_domain_add_simple()
- The irqdomain was not used to translate the initial irq
  request using irq_create_mapping() making the linear
  case fail as it was lacking a proper descriptor.

I took this opportunity to fix two lines of whitespace
errors in related code as I was anyway messing around with
it.

Acked-by Lee Jones <lee.jones@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: CAI Qian <caiqian@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/db8500-prcmu.c