|
@@ -34,7 +34,7 @@ struct ht_irq_cfg {
|
|
|
|
|
|
void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
|
|
|
{
|
|
|
- struct ht_irq_cfg *cfg = get_irq_data(irq);
|
|
|
+ struct ht_irq_cfg *cfg = irq_get_handler_data(irq);
|
|
|
unsigned long flags;
|
|
|
spin_lock_irqsave(&ht_irq_lock, flags);
|
|
|
if (cfg->msg.address_lo != msg->address_lo) {
|
|
@@ -53,13 +53,13 @@ void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
|
|
|
|
|
|
void fetch_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
|
|
|
{
|
|
|
- struct ht_irq_cfg *cfg = get_irq_data(irq);
|
|
|
+ struct ht_irq_cfg *cfg = irq_get_handler_data(irq);
|
|
|
*msg = cfg->msg;
|
|
|
}
|
|
|
|
|
|
void mask_ht_irq(struct irq_data *data)
|
|
|
{
|
|
|
- struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
|
|
|
+ struct ht_irq_cfg *cfg = irq_data_get_irq_handler_data(data);
|
|
|
struct ht_irq_msg msg = cfg->msg;
|
|
|
|
|
|
msg.address_lo |= 1;
|
|
@@ -68,7 +68,7 @@ void mask_ht_irq(struct irq_data *data)
|
|
|
|
|
|
void unmask_ht_irq(struct irq_data *data)
|
|
|
{
|
|
|
- struct ht_irq_cfg *cfg = irq_data_get_irq_data(data);
|
|
|
+ struct ht_irq_cfg *cfg = irq_data_get_irq_handler_data(data);
|
|
|
struct ht_irq_msg msg = cfg->msg;
|
|
|
|
|
|
msg.address_lo &= ~1;
|
|
@@ -126,7 +126,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update)
|
|
|
kfree(cfg);
|
|
|
return -EBUSY;
|
|
|
}
|
|
|
- set_irq_data(irq, cfg);
|
|
|
+ irq_set_handler_data(irq, cfg);
|
|
|
|
|
|
if (arch_setup_ht_irq(irq, dev) < 0) {
|
|
|
ht_destroy_irq(irq);
|
|
@@ -162,9 +162,9 @@ void ht_destroy_irq(unsigned int irq)
|
|
|
{
|
|
|
struct ht_irq_cfg *cfg;
|
|
|
|
|
|
- cfg = get_irq_data(irq);
|
|
|
- set_irq_chip(irq, NULL);
|
|
|
- set_irq_data(irq, NULL);
|
|
|
+ cfg = irq_get_handler_data(irq);
|
|
|
+ irq_set_chip(irq, NULL);
|
|
|
+ irq_set_handler_data(irq, NULL);
|
|
|
destroy_irq(irq);
|
|
|
|
|
|
kfree(cfg);
|