diff options
author | Kamlakant Patel <kamlakant.patel@broadcom.com> | 2015-08-01 08:14:20 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2015-09-03 06:08:03 -0400 |
commit | 325f0a1833c41d2d399fda161866923b72592cc9 (patch) | |
tree | e6b6e05cc0b9eb2a34a1b75a71e81d22959fc1ed /arch/mips/netlogic/common | |
parent | 832f5dacfa0bb081a3b3b979a36a132b28ffacf3 (diff) |
MIPS: Netlogic: Use chip_data for irq_chip methods
Update mips/netlogic/common/irq.c and mips/pci/msi-xlp.c to use chip_data
to store interrupt controller data pointer. It uses handler_data now,
and that causes errors when an API (like the GPIO subsystem) tries to
use the handler data.
Signed-off-by: Kamlakant Patel <kamlakant.patel@broadcom.com>
Signed-off-by: Jayachandran C <jchandra@broadcom.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/10817/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/netlogic/common')
-rw-r--r-- | arch/mips/netlogic/common/irq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/mips/netlogic/common/irq.c b/arch/mips/netlogic/common/irq.c index 5f5d18b0e94d..3660dc67d544 100644 --- a/arch/mips/netlogic/common/irq.c +++ b/arch/mips/netlogic/common/irq.c | |||
@@ -87,7 +87,7 @@ struct nlm_pic_irq { | |||
87 | static void xlp_pic_enable(struct irq_data *d) | 87 | static void xlp_pic_enable(struct irq_data *d) |
88 | { | 88 | { |
89 | unsigned long flags; | 89 | unsigned long flags; |
90 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); | 90 | struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); |
91 | 91 | ||
92 | BUG_ON(!pd); | 92 | BUG_ON(!pd); |
93 | spin_lock_irqsave(&pd->node->piclock, flags); | 93 | spin_lock_irqsave(&pd->node->piclock, flags); |
@@ -97,7 +97,7 @@ static void xlp_pic_enable(struct irq_data *d) | |||
97 | 97 | ||
98 | static void xlp_pic_disable(struct irq_data *d) | 98 | static void xlp_pic_disable(struct irq_data *d) |
99 | { | 99 | { |
100 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); | 100 | struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); |
101 | unsigned long flags; | 101 | unsigned long flags; |
102 | 102 | ||
103 | BUG_ON(!pd); | 103 | BUG_ON(!pd); |
@@ -108,7 +108,7 @@ static void xlp_pic_disable(struct irq_data *d) | |||
108 | 108 | ||
109 | static void xlp_pic_mask_ack(struct irq_data *d) | 109 | static void xlp_pic_mask_ack(struct irq_data *d) |
110 | { | 110 | { |
111 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); | 111 | struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); |
112 | 112 | ||
113 | clear_c0_eimr(pd->picirq); | 113 | clear_c0_eimr(pd->picirq); |
114 | ack_c0_eirr(pd->picirq); | 114 | ack_c0_eirr(pd->picirq); |
@@ -116,7 +116,7 @@ static void xlp_pic_mask_ack(struct irq_data *d) | |||
116 | 116 | ||
117 | static void xlp_pic_unmask(struct irq_data *d) | 117 | static void xlp_pic_unmask(struct irq_data *d) |
118 | { | 118 | { |
119 | struct nlm_pic_irq *pd = irq_data_get_irq_handler_data(d); | 119 | struct nlm_pic_irq *pd = irq_data_get_irq_chip_data(d); |
120 | 120 | ||
121 | BUG_ON(!pd); | 121 | BUG_ON(!pd); |
122 | 122 | ||
@@ -193,7 +193,7 @@ void nlm_setup_pic_irq(int node, int picirq, int irq, int irt) | |||
193 | pic_data->picirq = picirq; | 193 | pic_data->picirq = picirq; |
194 | pic_data->node = nlm_get_node(node); | 194 | pic_data->node = nlm_get_node(node); |
195 | irq_set_chip_and_handler(xirq, &xlp_pic, handle_level_irq); | 195 | irq_set_chip_and_handler(xirq, &xlp_pic, handle_level_irq); |
196 | irq_set_handler_data(xirq, pic_data); | 196 | irq_set_chip_data(xirq, pic_data); |
197 | } | 197 | } |
198 | 198 | ||
199 | void nlm_set_pic_extra_ack(int node, int irq, void (*xack)(struct irq_data *)) | 199 | void nlm_set_pic_extra_ack(int node, int irq, void (*xack)(struct irq_data *)) |
@@ -202,7 +202,7 @@ void nlm_set_pic_extra_ack(int node, int irq, void (*xack)(struct irq_data *)) | |||
202 | int xirq; | 202 | int xirq; |
203 | 203 | ||
204 | xirq = nlm_irq_to_xirq(node, irq); | 204 | xirq = nlm_irq_to_xirq(node, irq); |
205 | pic_data = irq_get_handler_data(xirq); | 205 | pic_data = irq_get_chip_data(xirq); |
206 | if (WARN_ON(!pic_data)) | 206 | if (WARN_ON(!pic_data)) |
207 | return; | 207 | return; |
208 | pic_data->extra_ack = xack; | 208 | pic_data->extra_ack = xack; |