aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert@linux-m68k.org>2011-08-18 14:01:51 -0400
committerGeert Uytterhoeven <geert@linux-m68k.org>2012-04-22 14:16:49 -0400
commit44883eb0231f4a5ce56926fdee185cba867ac121 (patch)
tree6d8ef736761f5bc87d174e60f7faac8193e16a24
parente2b56288af0c0b97c63aaaa667f2f3165971e911 (diff)
m68k/atari: Change VME irq numbers from unsigned long to unsigned int
Device interrupts numbers were changed to unsigned int in 1997, the year IRQ_MACHSPEC was killed as well. Also kill a related cast while we're at it. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org> Cc: netdev@vger.kernel.org
-rw-r--r--arch/m68k/atari/ataints.c4
-rw-r--r--arch/m68k/include/asm/atariints.h4
-rw-r--r--drivers/net/ethernet/amd/atarilance.c11
3 files changed, 8 insertions, 11 deletions
diff --git a/arch/m68k/atari/ataints.c b/arch/m68k/atari/ataints.c
index 783d8f02360d..3f41092d1b70 100644
--- a/arch/m68k/atari/ataints.c
+++ b/arch/m68k/atari/ataints.c
@@ -206,7 +206,7 @@ void __init atari_init_IRQ(void)
206 * hardware with a programmable int vector (probably a VME board). 206 * hardware with a programmable int vector (probably a VME board).
207 */ 207 */
208 208
209unsigned long atari_register_vme_int(void) 209unsigned int atari_register_vme_int(void)
210{ 210{
211 int i; 211 int i;
212 212
@@ -223,7 +223,7 @@ unsigned long atari_register_vme_int(void)
223EXPORT_SYMBOL(atari_register_vme_int); 223EXPORT_SYMBOL(atari_register_vme_int);
224 224
225 225
226void atari_unregister_vme_int(unsigned long irq) 226void atari_unregister_vme_int(unsigned int irq)
227{ 227{
228 if (irq >= VME_SOURCE_BASE && irq < VME_SOURCE_BASE + VME_MAX_SOURCES) { 228 if (irq >= VME_SOURCE_BASE && irq < VME_SOURCE_BASE + VME_MAX_SOURCES) {
229 irq -= VME_SOURCE_BASE; 229 irq -= VME_SOURCE_BASE;
diff --git a/arch/m68k/include/asm/atariints.h b/arch/m68k/include/asm/atariints.h
index 656bbbf5a6ff..5fc13bdf9044 100644
--- a/arch/m68k/include/asm/atariints.h
+++ b/arch/m68k/include/asm/atariints.h
@@ -198,7 +198,7 @@ static inline int atari_irq_pending( unsigned irq )
198 return( get_mfp_bit( irq, MFP_PENDING ) ); 198 return( get_mfp_bit( irq, MFP_PENDING ) );
199} 199}
200 200
201unsigned long atari_register_vme_int( void ); 201unsigned int atari_register_vme_int(void);
202void atari_unregister_vme_int( unsigned long ); 202void atari_unregister_vme_int(unsigned int);
203 203
204#endif /* linux/atariints.h */ 204#endif /* linux/atariints.h */
diff --git a/drivers/net/ethernet/amd/atarilance.c b/drivers/net/ethernet/amd/atarilance.c
index 70ed79c46245..84219df72f51 100644
--- a/drivers/net/ethernet/amd/atarilance.c
+++ b/drivers/net/ethernet/amd/atarilance.c
@@ -558,21 +558,18 @@ static unsigned long __init lance_probe1( struct net_device *dev,
558 printk( "Lance: request for irq %d failed\n", IRQ_AUTO_5 ); 558 printk( "Lance: request for irq %d failed\n", IRQ_AUTO_5 );
559 return 0; 559 return 0;
560 } 560 }
561 dev->irq = (unsigned short)IRQ_AUTO_5; 561 dev->irq = IRQ_AUTO_5;
562 } 562 }
563 else { 563 else {
564 /* For VME-RieblCards, request a free VME int; 564 /* For VME-RieblCards, request a free VME int */
565 * (This must be unsigned long, since dev->irq is short and the 565 unsigned int irq = atari_register_vme_int();
566 * IRQ_MACHSPEC bit would be cut off...)
567 */
568 unsigned long irq = atari_register_vme_int();
569 if (!irq) { 566 if (!irq) {
570 printk( "Lance: request for VME interrupt failed\n" ); 567 printk( "Lance: request for VME interrupt failed\n" );
571 return 0; 568 return 0;
572 } 569 }
573 if (request_irq(irq, lance_interrupt, IRQ_TYPE_PRIO, 570 if (request_irq(irq, lance_interrupt, IRQ_TYPE_PRIO,
574 "Riebl-VME Ethernet", dev)) { 571 "Riebl-VME Ethernet", dev)) {
575 printk( "Lance: request for irq %ld failed\n", irq ); 572 printk( "Lance: request for irq %u failed\n", irq );
576 return 0; 573 return 0;
577 } 574 }
578 dev->irq = irq; 575 dev->irq = irq;