tc3589x.c (734d1ece37fbf3d2ddfc71bc6c69e0fe35f02542) | tc3589x.c (1f0529b4d80ad02df637be67ed4f82e93b8db32f) |
---|---|
1/* 2 * Copyright (C) ST-Ericsson SA 2010 3 * 4 * License Terms: GNU General Public License, version 2 5 * Author: Hanumath Prasad <hanumath.prasad@stericsson.com> for ST-Ericsson 6 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 7 */ 8 --- 205 unchanged lines hidden (view full) --- 214#ifdef CONFIG_ARM 215 set_irq_flags(virq, 0); 216#endif 217 irq_set_chip_and_handler(virq, NULL, NULL); 218 irq_set_chip_data(virq, NULL); 219} 220 221static struct irq_domain_ops tc3589x_irq_ops = { | 1/* 2 * Copyright (C) ST-Ericsson SA 2010 3 * 4 * License Terms: GNU General Public License, version 2 5 * Author: Hanumath Prasad <hanumath.prasad@stericsson.com> for ST-Ericsson 6 * Author: Rabin Vincent <rabin.vincent@stericsson.com> for ST-Ericsson 7 */ 8 --- 205 unchanged lines hidden (view full) --- 214#ifdef CONFIG_ARM 215 set_irq_flags(virq, 0); 216#endif 217 irq_set_chip_and_handler(virq, NULL, NULL); 218 irq_set_chip_data(virq, NULL); 219} 220 221static struct irq_domain_ops tc3589x_irq_ops = { |
222 .map = tc3589x_irq_map, | 222 .map = tc3589x_irq_map, |
223 .unmap = tc3589x_irq_unmap, | 223 .unmap = tc3589x_irq_unmap, |
224 .xlate = irq_domain_xlate_twocell, | 224 .xlate = irq_domain_xlate_twocell, |
225}; 226 227static int tc3589x_irq_init(struct tc3589x *tc3589x, struct device_node *np) 228{ 229 int base = tc3589x->irq_base; 230 | 225}; 226 227static int tc3589x_irq_init(struct tc3589x *tc3589x, struct device_node *np) 228{ 229 int base = tc3589x->irq_base; 230 |
231 if (base) { 232 tc3589x->domain = irq_domain_add_legacy( 233 NULL, TC3589x_NR_INTERNAL_IRQS, base, 234 0, &tc3589x_irq_ops, tc3589x); 235 } 236 else { 237 tc3589x->domain = irq_domain_add_linear( 238 np, TC3589x_NR_INTERNAL_IRQS, 239 &tc3589x_irq_ops, tc3589x); 240 } | 231 tc3589x->domain = irq_domain_add_simple( 232 np, TC3589x_NR_INTERNAL_IRQS, base, 233 &tc3589x_irq_ops, tc3589x); |
241 242 if (!tc3589x->domain) { 243 dev_err(tc3589x->dev, "Failed to create irqdomain\n"); 244 return -ENOSYS; 245 } 246 247 return 0; 248} --- 231 unchanged lines hidden --- | 234 235 if (!tc3589x->domain) { 236 dev_err(tc3589x->dev, "Failed to create irqdomain\n"); 237 return -ENOSYS; 238 } 239 240 return 0; 241} --- 231 unchanged lines hidden --- |