aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-07-27 19:46:08 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-27 19:46:08 -0400
commit3e318b5b55fafebd3a6e4dd3a00b79bfc0668675 (patch)
treee2be576d5ab3487d0c350b421bff7e285fd056c2 /drivers
parent940389b8afad6495211614c13eb91ef7001773ec (diff)
parent53cdb27a933e4032934cbda0b447cfc9943c0eac (diff)
Merge master.kernel.org:/home/rmk/linux-2.6-arm
* master.kernel.org:/home/rmk/linux-2.6-arm: [ARM] Fix shared mmap when more than two maps of the same file exist [ARM] fix VIPT/VIVT macro optimisations, add comments [ARM] 5179/1: Replace obsolete IRQT_* and __IRQT_* values with IRQ_TYPE_* [ARM] update defconfig for eseries. [ARM] PXA: squash warning in pxafb [ARM] pxa: PXA25x UDC - Fix warning during build [ARM] fix nwflash.c: 6ee8928d94841aa764aeaf645ad16daff811dc26 [ARM] fix IOP32x, IOP33x, MXC and Samsung builds [ARM] pci: provide dummy pci_get_legacy_ide_irq() [ARM] fix fls() for 64-bit arguments [ARM] fix mode for board-yl-9200.c [ARM] 5176/1: arm/Makefile: fix: ARM946T -> ARM946E
Diffstat (limited to 'drivers')
-rw-r--r--drivers/ata/pata_ixp4xx_cf.c2
-rw-r--r--drivers/char/nwflash.c6
-rw-r--r--drivers/input/touchscreen/corgi_ts.c8
-rw-r--r--drivers/input/touchscreen/mainstone-wm97xx.c2
-rw-r--r--drivers/mfd/asic3.c14
-rw-r--r--drivers/mfd/tc6393xb.c2
-rw-r--r--drivers/pcmcia/soc_common.c12
-rw-r--r--drivers/video/am200epd.c2
-rw-r--r--drivers/video/omap/sossi.c2
-rw-r--r--drivers/video/pxafb.c2
10 files changed, 26 insertions, 26 deletions
diff --git a/drivers/ata/pata_ixp4xx_cf.c b/drivers/ata/pata_ixp4xx_cf.c
index de8d186f5abf..2014253f6c88 100644
--- a/drivers/ata/pata_ixp4xx_cf.c
+++ b/drivers/ata/pata_ixp4xx_cf.c
@@ -169,7 +169,7 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev)
169 169
170 irq = platform_get_irq(pdev, 0); 170 irq = platform_get_irq(pdev, 0);
171 if (irq) 171 if (irq)
172 set_irq_type(irq, IRQT_RISING); 172 set_irq_type(irq, IRQ_TYPE_EDGE_RISING);
173 173
174 /* Setup expansion bus chip selects */ 174 /* Setup expansion bus chip selects */
175 *data->cs0_cfg = data->cs0_bits; 175 *data->cs0_cfg = data->cs0_bits;
diff --git a/drivers/char/nwflash.c b/drivers/char/nwflash.c
index f9f72a211292..006be92ee3f3 100644
--- a/drivers/char/nwflash.c
+++ b/drivers/char/nwflash.c
@@ -125,15 +125,15 @@ static ssize_t flash_read(struct file *file, char __user *buf, size_t size,
125 ssize_t ret; 125 ssize_t ret;
126 126
127 if (flashdebug) 127 if (flashdebug)
128 printk(KERN_DEBUG "flash_read: flash_read: offset=0x%lX, " 128 printk(KERN_DEBUG "flash_read: flash_read: offset=0x%llx, "
129 "buffer=%p, count=0x%X.\n", p, buf, count); 129 "buffer=%p, count=0x%zx.\n", *ppos, buf, size);
130 /* 130 /*
131 * We now lock against reads and writes. --rmk 131 * We now lock against reads and writes. --rmk
132 */ 132 */
133 if (mutex_lock_interruptible(&nwflash_mutex)) 133 if (mutex_lock_interruptible(&nwflash_mutex))
134 return -ERESTARTSYS; 134 return -ERESTARTSYS;
135 135
136 ret = simple_read_from_buffer(buf, size, ppos, FLASH_BASE, gbFlashSize); 136 ret = simple_read_from_buffer(buf, size, ppos, (void *)FLASH_BASE, gbFlashSize);
137 mutex_unlock(&nwflash_mutex); 137 mutex_unlock(&nwflash_mutex);
138 138
139 return ret; 139 return ret;
diff --git a/drivers/input/touchscreen/corgi_ts.c b/drivers/input/touchscreen/corgi_ts.c
index 4e9d8eece2e0..d0e13fc4a88c 100644
--- a/drivers/input/touchscreen/corgi_ts.c
+++ b/drivers/input/touchscreen/corgi_ts.c
@@ -195,7 +195,7 @@ static void ts_interrupt_main(struct corgi_ts *corgi_ts, int isTimer)
195{ 195{
196 if ((GPLR(IRQ_TO_GPIO(corgi_ts->irq_gpio)) & GPIO_bit(IRQ_TO_GPIO(corgi_ts->irq_gpio))) == 0) { 196 if ((GPLR(IRQ_TO_GPIO(corgi_ts->irq_gpio)) & GPIO_bit(IRQ_TO_GPIO(corgi_ts->irq_gpio))) == 0) {
197 /* Disable Interrupt */ 197 /* Disable Interrupt */
198 set_irq_type(corgi_ts->irq_gpio, IRQT_NOEDGE); 198 set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_NONE);
199 if (read_xydata(corgi_ts)) { 199 if (read_xydata(corgi_ts)) {
200 corgi_ts->pendown = 1; 200 corgi_ts->pendown = 1;
201 new_data(corgi_ts); 201 new_data(corgi_ts);
@@ -214,7 +214,7 @@ static void ts_interrupt_main(struct corgi_ts *corgi_ts, int isTimer)
214 } 214 }
215 215
216 /* Enable Falling Edge */ 216 /* Enable Falling Edge */
217 set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING); 217 set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
218 corgi_ts->pendown = 0; 218 corgi_ts->pendown = 0;
219 } 219 }
220} 220}
@@ -258,7 +258,7 @@ static int corgits_resume(struct platform_device *dev)
258 258
259 corgi_ssp_ads7846_putget((4u << ADSCTRL_ADR_SH) | ADSCTRL_STS); 259 corgi_ssp_ads7846_putget((4u << ADSCTRL_ADR_SH) | ADSCTRL_STS);
260 /* Enable Falling Edge */ 260 /* Enable Falling Edge */
261 set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING); 261 set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
262 corgi_ts->power_mode = PWR_MODE_ACTIVE; 262 corgi_ts->power_mode = PWR_MODE_ACTIVE;
263 263
264 return 0; 264 return 0;
@@ -333,7 +333,7 @@ static int __init corgits_probe(struct platform_device *pdev)
333 corgi_ts->power_mode = PWR_MODE_ACTIVE; 333 corgi_ts->power_mode = PWR_MODE_ACTIVE;
334 334
335 /* Enable Falling Edge */ 335 /* Enable Falling Edge */
336 set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING); 336 set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
337 337
338 return 0; 338 return 0;
339 339
diff --git a/drivers/input/touchscreen/mainstone-wm97xx.c b/drivers/input/touchscreen/mainstone-wm97xx.c
index a79f029b91c0..590a1379aa32 100644
--- a/drivers/input/touchscreen/mainstone-wm97xx.c
+++ b/drivers/input/touchscreen/mainstone-wm97xx.c
@@ -198,7 +198,7 @@ static int wm97xx_acc_startup(struct wm97xx *wm)
198 switch (wm->id) { 198 switch (wm->id) {
199 case WM9705_ID2: 199 case WM9705_ID2:
200 wm->pen_irq = IRQ_GPIO(4); 200 wm->pen_irq = IRQ_GPIO(4);
201 set_irq_type(IRQ_GPIO(4), IRQT_BOTHEDGE); 201 set_irq_type(IRQ_GPIO(4), IRQ_TYPE_EDGE_BOTH);
202 break; 202 break;
203 case WM9712_ID2: 203 case WM9712_ID2:
204 case WM9713_ID2: 204 case WM9713_ID2:
diff --git a/drivers/mfd/asic3.c b/drivers/mfd/asic3.c
index eabf0bfccab4..c6408a62d95e 100644
--- a/drivers/mfd/asic3.c
+++ b/drivers/mfd/asic3.c
@@ -256,28 +256,28 @@ static int asic3_gpio_irq_type(unsigned int irq, unsigned int type)
256 bank + ASIC3_GPIO_TRIGGER_TYPE); 256 bank + ASIC3_GPIO_TRIGGER_TYPE);
257 asic->irq_bothedge[(irq - asic->irq_base) >> 4] &= ~bit; 257 asic->irq_bothedge[(irq - asic->irq_base) >> 4] &= ~bit;
258 258
259 if (type == IRQT_RISING) { 259 if (type == IRQ_TYPE_EDGE_RISING) {
260 trigger |= bit; 260 trigger |= bit;
261 edge |= bit; 261 edge |= bit;
262 } else if (type == IRQT_FALLING) { 262 } else if (type == IRQ_TYPE_EDGE_FALLING) {
263 trigger |= bit; 263 trigger |= bit;
264 edge &= ~bit; 264 edge &= ~bit;
265 } else if (type == IRQT_BOTHEDGE) { 265 } else if (type == IRQ_TYPE_EDGE_BOTH) {
266 trigger |= bit; 266 trigger |= bit;
267 if (asic3_gpio_get(&asic->gpio, irq - asic->irq_base)) 267 if (asic3_gpio_get(&asic->gpio, irq - asic->irq_base))
268 edge &= ~bit; 268 edge &= ~bit;
269 else 269 else
270 edge |= bit; 270 edge |= bit;
271 asic->irq_bothedge[(irq - asic->irq_base) >> 4] |= bit; 271 asic->irq_bothedge[(irq - asic->irq_base) >> 4] |= bit;
272 } else if (type == IRQT_LOW) { 272 } else if (type == IRQ_TYPE_LEVEL_LOW) {
273 trigger &= ~bit; 273 trigger &= ~bit;
274 level &= ~bit; 274 level &= ~bit;
275 } else if (type == IRQT_HIGH) { 275 } else if (type == IRQ_TYPE_LEVEL_HIGH) {
276 trigger &= ~bit; 276 trigger &= ~bit;
277 level |= bit; 277 level |= bit;
278 } else { 278 } else {
279 /* 279 /*
280 * if type == IRQT_NOEDGE, we should mask interrupts, but 280 * if type == IRQ_TYPE_NONE, we should mask interrupts, but
281 * be careful to not unmask them if mask was also called. 281 * be careful to not unmask them if mask was also called.
282 * Probably need internal state for mask. 282 * Probably need internal state for mask.
283 */ 283 */
@@ -343,7 +343,7 @@ static int __init asic3_irq_probe(struct platform_device *pdev)
343 ASIC3_INTMASK_GINTMASK); 343 ASIC3_INTMASK_GINTMASK);
344 344
345 set_irq_chained_handler(asic->irq_nr, asic3_irq_demux); 345 set_irq_chained_handler(asic->irq_nr, asic3_irq_demux);
346 set_irq_type(asic->irq_nr, IRQT_RISING); 346 set_irq_type(asic->irq_nr, IRQ_TYPE_EDGE_RISING);
347 set_irq_data(asic->irq_nr, asic); 347 set_irq_data(asic->irq_nr, asic);
348 348
349 return 0; 349 return 0;
diff --git a/drivers/mfd/tc6393xb.c b/drivers/mfd/tc6393xb.c
index 2d87501b6fd4..94e55e8e7ce6 100644
--- a/drivers/mfd/tc6393xb.c
+++ b/drivers/mfd/tc6393xb.c
@@ -324,7 +324,7 @@ static void tc6393xb_attach_irq(struct platform_device *dev)
324 set_irq_flags(irq, IRQF_VALID | IRQF_PROBE); 324 set_irq_flags(irq, IRQF_VALID | IRQF_PROBE);
325 } 325 }
326 326
327 set_irq_type(tc6393xb->irq, IRQT_FALLING); 327 set_irq_type(tc6393xb->irq, IRQ_TYPE_EDGE_FALLING);
328 set_irq_data(tc6393xb->irq, tc6393xb); 328 set_irq_data(tc6393xb->irq, tc6393xb);
329 set_irq_chained_handler(tc6393xb->irq, tc6393xb_irq); 329 set_irq_chained_handler(tc6393xb->irq, tc6393xb_irq);
330} 330}
diff --git a/drivers/pcmcia/soc_common.c b/drivers/pcmcia/soc_common.c
index 420a77540f41..8c21446996f2 100644
--- a/drivers/pcmcia/soc_common.c
+++ b/drivers/pcmcia/soc_common.c
@@ -149,10 +149,10 @@ soc_common_pcmcia_config_skt(struct soc_pcmcia_socket *skt, socket_state_t *stat
149 */ 149 */
150 if (skt->irq_state != 1 && state->io_irq) { 150 if (skt->irq_state != 1 && state->io_irq) {
151 skt->irq_state = 1; 151 skt->irq_state = 1;
152 set_irq_type(skt->irq, IRQT_FALLING); 152 set_irq_type(skt->irq, IRQ_TYPE_EDGE_FALLING);
153 } else if (skt->irq_state == 1 && state->io_irq == 0) { 153 } else if (skt->irq_state == 1 && state->io_irq == 0) {
154 skt->irq_state = 0; 154 skt->irq_state = 0;
155 set_irq_type(skt->irq, IRQT_NOEDGE); 155 set_irq_type(skt->irq, IRQ_TYPE_NONE);
156 } 156 }
157 157
158 skt->cs_state = *state; 158 skt->cs_state = *state;
@@ -527,7 +527,7 @@ int soc_pcmcia_request_irqs(struct soc_pcmcia_socket *skt,
527 IRQF_DISABLED, irqs[i].str, skt); 527 IRQF_DISABLED, irqs[i].str, skt);
528 if (res) 528 if (res)
529 break; 529 break;
530 set_irq_type(irqs[i].irq, IRQT_NOEDGE); 530 set_irq_type(irqs[i].irq, IRQ_TYPE_NONE);
531 } 531 }
532 532
533 if (res) { 533 if (res) {
@@ -560,7 +560,7 @@ void soc_pcmcia_disable_irqs(struct soc_pcmcia_socket *skt,
560 560
561 for (i = 0; i < nr; i++) 561 for (i = 0; i < nr; i++)
562 if (irqs[i].sock == skt->nr) 562 if (irqs[i].sock == skt->nr)
563 set_irq_type(irqs[i].irq, IRQT_NOEDGE); 563 set_irq_type(irqs[i].irq, IRQ_TYPE_NONE);
564} 564}
565EXPORT_SYMBOL(soc_pcmcia_disable_irqs); 565EXPORT_SYMBOL(soc_pcmcia_disable_irqs);
566 566
@@ -571,8 +571,8 @@ void soc_pcmcia_enable_irqs(struct soc_pcmcia_socket *skt,
571 571
572 for (i = 0; i < nr; i++) 572 for (i = 0; i < nr; i++)
573 if (irqs[i].sock == skt->nr) { 573 if (irqs[i].sock == skt->nr) {
574 set_irq_type(irqs[i].irq, IRQT_RISING); 574 set_irq_type(irqs[i].irq, IRQ_TYPE_EDGE_RISING);
575 set_irq_type(irqs[i].irq, IRQT_BOTHEDGE); 575 set_irq_type(irqs[i].irq, IRQ_TYPE_EDGE_BOTH);
576 } 576 }
577} 577}
578EXPORT_SYMBOL(soc_pcmcia_enable_irqs); 578EXPORT_SYMBOL(soc_pcmcia_enable_irqs);
diff --git a/drivers/video/am200epd.c b/drivers/video/am200epd.c
index 51e26c1f5e8b..32dd85126931 100644
--- a/drivers/video/am200epd.c
+++ b/drivers/video/am200epd.c
@@ -221,7 +221,7 @@ static int am200_setup_irq(struct fb_info *info)
221 return retval; 221 return retval;
222 } 222 }
223 223
224 return set_irq_type(IRQ_GPIO(RDY_GPIO_PIN), IRQT_FALLING); 224 return set_irq_type(IRQ_GPIO(RDY_GPIO_PIN), IRQ_TYPE_EDGE_FALLING);
225} 225}
226 226
227static void am200_set_rst(struct metronomefb_par *par, int state) 227static void am200_set_rst(struct metronomefb_par *par, int state)
diff --git a/drivers/video/omap/sossi.c b/drivers/video/omap/sossi.c
index 81dbcf53cf0e..fafd0f26b90f 100644
--- a/drivers/video/omap/sossi.c
+++ b/drivers/video/omap/sossi.c
@@ -646,7 +646,7 @@ static int sossi_init(struct omapfb_device *fbdev)
646 sossi_write_reg(SOSSI_INIT1_REG, l); 646 sossi_write_reg(SOSSI_INIT1_REG, l);
647 647
648 if ((r = request_irq(INT_1610_SoSSI_MATCH, sossi_match_irq, 648 if ((r = request_irq(INT_1610_SoSSI_MATCH, sossi_match_irq,
649 IRQT_FALLING, 649 IRQ_TYPE_EDGE_FALLING,
650 "sossi_match", sossi.fbdev->dev)) < 0) { 650 "sossi_match", sossi.fbdev->dev)) < 0) {
651 dev_err(sossi.fbdev->dev, "can't get SoSSI match IRQ\n"); 651 dev_err(sossi.fbdev->dev, "can't get SoSSI match IRQ\n");
652 goto err; 652 goto err;
diff --git a/drivers/video/pxafb.c b/drivers/video/pxafb.c
index 2b707a8ce5de..69de2fed6c58 100644
--- a/drivers/video/pxafb.c
+++ b/drivers/video/pxafb.c
@@ -1336,7 +1336,7 @@ static int __devinit pxafb_map_video_memory(struct pxafb_info *fbi)
1336 fbi->dma_buff_phys = fbi->map_dma; 1336 fbi->dma_buff_phys = fbi->map_dma;
1337 fbi->palette_cpu = (u16 *) fbi->dma_buff->palette; 1337 fbi->palette_cpu = (u16 *) fbi->dma_buff->palette;
1338 1338
1339 pr_debug("pxafb: palette_mem_size = 0x%08lx\n", fbi->palette_size*sizeof(u16)); 1339 pr_debug("pxafb: palette_mem_size = 0x%08x\n", fbi->palette_size*sizeof(u16));
1340 1340
1341#ifdef CONFIG_FB_PXA_SMARTPANEL 1341#ifdef CONFIG_FB_PXA_SMARTPANEL
1342 fbi->smart_cmds = (uint16_t *) fbi->dma_buff->cmd_buff; 1342 fbi->smart_cmds = (uint16_t *) fbi->dma_buff->cmd_buff;