]> git.baikalelectronics.ru Git - kernel.git/commit
platform-drivers: x86: pmic: Use irq_chip buslock mechanism
authorThomas Gleixner <tglx@linutronix.de>
Sat, 5 Feb 2011 10:46:32 +0000 (10:46 +0000)
committerMatthew Garrett <mjg@redhat.com>
Mon, 7 Feb 2011 21:52:28 +0000 (16:52 -0500)
commit1d94c6f3d36ca4cc9a63d67c0f580e324afa7db5
tree0248a01267c1e827a5175cabe80c4acda6afee24
parent3d0a302bb000b1de4b5ca8d712a797862adb731f
platform-drivers: x86: pmic: Use irq_chip buslock mechanism

The set_type function of the pmic irq chip is a horrible hack. It
schedules work because it cannot access the scu chip from the set_type
function. That breaks the assumption, that the type is set after
set_type has returned.

irq_chips provide buslock functions to avoid the above. Convert the
driver to use the proper model.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Feng Tang <feng.tang@intel.com>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Alan Cox <alan@linux.intel.com>
Cc: Alek Du <alek.du@intel.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_pmic_gpio.c