aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ppc/platforms
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2006-01-12 04:06:12 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-12 12:09:00 -0500
commitb4290a23cfa9040e2f0de5ab57d6ea65abaf053b (patch)
tree592b8ecd6a2a4b618c5de1a2573f79cd932df31e /arch/ppc/platforms
parent198a4101197797fd9cee40c17dc285dc84c5d745 (diff)
[PATCH] m68k: namespace pollution fix (custom->amiga_custom)
in amigahw.h custom renamed to amiga_custom, in drivers with few instances the same replacement, in the rest - #define custom amiga_custom in driver itself Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Cc: Roman Zippel <zippel@linux-m68k.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/ppc/platforms')
-rw-r--r--arch/ppc/platforms/apus_setup.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/ppc/platforms/apus_setup.c b/arch/ppc/platforms/apus_setup.c
index 2f74fde98ebc..f62179f14cbb 100644
--- a/arch/ppc/platforms/apus_setup.c
+++ b/arch/ppc/platforms/apus_setup.c
@@ -574,9 +574,9 @@ static __inline__ void ser_RTSon(void)
574 574
575int __debug_ser_out( unsigned char c ) 575int __debug_ser_out( unsigned char c )
576{ 576{
577 custom.serdat = c | 0x100; 577 amiga_custom.serdat = c | 0x100;
578 mb(); 578 mb();
579 while (!(custom.serdatr & 0x2000)) 579 while (!(amiga_custom.serdatr & 0x2000))
580 barrier(); 580 barrier();
581 return 1; 581 return 1;
582} 582}
@@ -586,11 +586,11 @@ unsigned char __debug_ser_in( void )
586 unsigned char c; 586 unsigned char c;
587 587
588 /* XXX: is that ok?? derived from amiga_ser.c... */ 588 /* XXX: is that ok?? derived from amiga_ser.c... */
589 while( !(custom.intreqr & IF_RBF) ) 589 while( !(amiga_custom.intreqr & IF_RBF) )
590 barrier(); 590 barrier();
591 c = custom.serdatr; 591 c = amiga_custom.serdatr;
592 /* clear the interrupt, so that another character can be read */ 592 /* clear the interrupt, so that another character can be read */
593 custom.intreq = IF_RBF; 593 amiga_custom.intreq = IF_RBF;
594 return c; 594 return c;
595} 595}
596 596
@@ -601,10 +601,10 @@ int __debug_serinit( void )
601 local_irq_save(flags); 601 local_irq_save(flags);
602 602
603 /* turn off Rx and Tx interrupts */ 603 /* turn off Rx and Tx interrupts */
604 custom.intena = IF_RBF | IF_TBE; 604 amiga_custom.intena = IF_RBF | IF_TBE;
605 605
606 /* clear any pending interrupt */ 606 /* clear any pending interrupt */
607 custom.intreq = IF_RBF | IF_TBE; 607 amiga_custom.intreq = IF_RBF | IF_TBE;
608 608
609 local_irq_restore(flags); 609 local_irq_restore(flags);
610 610
@@ -617,7 +617,7 @@ int __debug_serinit( void )
617 617
618#ifdef CONFIG_KGDB 618#ifdef CONFIG_KGDB
619 /* turn Rx interrupts on for GDB */ 619 /* turn Rx interrupts on for GDB */
620 custom.intena = IF_SETCLR | IF_RBF; 620 amiga_custom.intena = IF_SETCLR | IF_RBF;
621 ser_RTSon(); 621 ser_RTSon();
622#endif 622#endif
623 623