• Thomas Gleixner's avatar
    platform-drivers: x86: pmic: Use irq_chip buslock mechanism · d4b7de61
    Thomas Gleixner authored
    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: default avatarThomas 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: default avatarMatthew Garrett <mjg@redhat.com>
    d4b7de61
intel_pmic_gpio.c 8.05 KB