• E
    msi: Kill the msi_desc array. · 5b912c10
    Eric W. Biederman 提交于
    We need to be able to get from an irq number to a struct msi_desc.
    The msi_desc array in msi.c had several short comings the big one was
    that it could not be used outside of msi.c.  Using irq_data in struct
    irq_desc almost worked except on some architectures irq_data needs to
    be used for something else.
    
    So this patch adds a msi_desc pointer to irq_desc, adds the appropriate
    wrappers and changes all of the msi code to use them.
    
    The dynamic_irq_init/cleanup code was tweaked to ensure the new
    field is left in a well defined state.
    Signed-off-by: NEric W. Biederman <ebiederm@xmission.com>
    Acked-by: NIngo Molnar <mingo@elte.hu>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    5b912c10
chip.c 14.1 KB