irq.c (7c6747bc2e3da8abb63f69eb724006ca8276ce2d) | irq.c (ba1bc0fcdeaf3bf583c1517bd2e3e29cf223c969) |
---|---|
1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * Copyright (C) 2010 John Crispin <john@phrozen.org> 7 * Copyright (C) 2010 Thomas Langer <thomas.langer@lantiq.com> 8 */ --- 136 unchanged lines hidden (view full) --- 145 pr_err("invalid type %d for irq %ld\n", 146 type, d->hwirq); 147 return -EINVAL; 148 } 149 150 if (edge) 151 irq_set_handler(d->hwirq, handle_edge_irq); 152 | 1/* 2 * This program is free software; you can redistribute it and/or modify it 3 * under the terms of the GNU General Public License version 2 as published 4 * by the Free Software Foundation. 5 * 6 * Copyright (C) 2010 John Crispin <john@phrozen.org> 7 * Copyright (C) 2010 Thomas Langer <thomas.langer@lantiq.com> 8 */ --- 136 unchanged lines hidden (view full) --- 145 pr_err("invalid type %d for irq %ld\n", 146 type, d->hwirq); 147 return -EINVAL; 148 } 149 150 if (edge) 151 irq_set_handler(d->hwirq, handle_edge_irq); 152 |
153 ltq_eiu_w32(ltq_eiu_r32(LTQ_EIU_EXIN_C) | 154 (val << (i * 4)), LTQ_EIU_EXIN_C); | 153 ltq_eiu_w32((ltq_eiu_r32(LTQ_EIU_EXIN_C) & 154 (~(7 << (i * 4)))) | (val << (i * 4)), 155 LTQ_EIU_EXIN_C); |
155 } 156 } 157 158 return 0; 159} 160 161static unsigned int ltq_startup_eiu_irq(struct irq_data *d) 162{ --- 192 unchanged lines hidden --- | 156 } 157 } 158 159 return 0; 160} 161 162static unsigned int ltq_startup_eiu_irq(struct irq_data *d) 163{ --- 192 unchanged lines hidden --- |