]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commitd4b7de612d193e1c8fdeee9902e5a582e746dfe9
tree0248a01267c1e827a5175cabe80c4acda6afee24
parentcb8e5e6a60cab5a90afd45d49655458c6e1db78c
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