return get_irq_chip_data(irq);
}
-static struct irq_cfg *get_one_free_irq_cfg(int node)
+static struct irq_cfg *alloc_irq_cfg(unsigned int irq, int node)
{
struct irq_cfg *cfg;
return NULL;
}
-static void free_irq_cfg(struct irq_cfg *cfg)
+static void free_irq_cfg(unsigned int at, struct irq_cfg *cfg)
{
free_cpumask_var(cfg->domain);
free_cpumask_var(cfg->old_domain);
cfg = get_irq_desc_chip_data(desc);
if (!cfg) {
- cfg = get_one_free_irq_cfg(node);
+ cfg = alloc_irq_cfg(desc->irq, node);
desc->chip_data = cfg;
if (!cfg) {
printk(KERN_ERR "can not alloc irq_cfg\n");
struct irq_cfg *cfg;
struct irq_cfg *old_cfg;
- cfg = get_one_free_irq_cfg(node);
+ cfg = alloc_irq_cfg(desc->irq, node);
if (!cfg)
return;
if (old_cfg) {
free_irq_2_pin(old_cfg, cfg);
- free_irq_cfg(old_cfg);
+ free_irq_cfg(old_desc->irq, old_cfg);
old_desc->chip_data = NULL;
}
}
return irq < nr_irqs ? irq_cfgx + irq : NULL;
}
-static struct irq_cfg *get_one_free_irq_cfg(unsigned int irq, int node)
+static struct irq_cfg *alloc_irq_cfg(unsigned int irq, int node)
{
return irq_cfgx + irq;
}
-static inline void free_irq_cfg(struct irq_cfg *cfg) { }
+static inline void free_irq_cfg(unsigned int at, struct irq_cfg *cfg) { }
#endif
return cfg;
}
- cfg = get_one_free_irq_cfg(node);
+ cfg = alloc_irq_cfg(at, node);
if (cfg)
set_irq_chip_data(at, cfg);
else
static void free_irq_at(unsigned int at, struct irq_cfg *cfg)
{
- free_irq_cfg(cfg);
+ free_irq_cfg(at, cfg);
irq_free_desc(at);
}