@@ -52,7 +52,7 @@ static unsigned int Submodule_slot;
5252#define DPRINT_CONFIG (_x ...) ;
5353//#define DPRINT_CONFIG(_x...) printk _x
5454#define NOT_PROGRESS () ;
55- //#define NOT_PROGRESS() printk("%s : fails %d\n", __FUNCTION__ , __LINE__)
55+ //#define NOT_PROGRESS() printk("%s : fails %d\n", __func__ , __LINE__)
5656
5757/* number of characters we want to transmit to the lower level at a time */
5858#define MAX_CHARS 256
@@ -445,7 +445,7 @@ static int inline port_init(struct ioc3_port *port)
445445 sbbr_h = & idd -> vma -> sbbr_h ;
446446 ring_pci_addr = (unsigned long __iomem )port -> ip_dma_ringbuf ;
447447 DPRINT_CONFIG (("%s: ring_pci_addr 0x%p\n" ,
448- __FUNCTION__ , (void * )ring_pci_addr ));
448+ __func__ , (void * )ring_pci_addr ));
449449
450450 writel ((unsigned int )((uint64_t ) ring_pci_addr >> 32 ), sbbr_h );
451451 writel ((unsigned int )ring_pci_addr | BUF_SIZE_BIT , sbbr_l );
@@ -593,7 +593,7 @@ config_port(struct ioc3_port *port,
593593
594594 DPRINT_CONFIG (("%s: line %d baud %d byte_size %d stop %d parenb %d "
595595 "parodd %d\n" ,
596- __FUNCTION__ , ((struct uart_port * )port -> ip_port )-> line ,
596+ __func__ , ((struct uart_port * )port -> ip_port )-> line ,
597597 baud , byte_size , stop_bits , parenb , parodd ));
598598
599599 if (set_baud (port , baud ))
@@ -871,14 +871,14 @@ static int ioc3_set_proto(struct ioc3_port *port, int proto)
871871 default :
872872 case PROTO_RS232 :
873873 /* Clear the appropriate GIO pin */
874- DPRINT_CONFIG (("%s: rs232\n" , __FUNCTION__ ));
874+ DPRINT_CONFIG (("%s: rs232\n" , __func__ ));
875875 writel (0 , (& port -> ip_idd -> vma -> gppr [0 ]
876876 + hooks -> rs422_select_pin ));
877877 break ;
878878
879879 case PROTO_RS422 :
880880 /* Set the appropriate GIO pin */
881- DPRINT_CONFIG (("%s: rs422\n" , __FUNCTION__ ));
881+ DPRINT_CONFIG (("%s: rs422\n" , __func__ ));
882882 writel (1 , (& port -> ip_idd -> vma -> gppr [0 ]
883883 + hooks -> rs422_select_pin ));
884884 break ;
@@ -988,7 +988,7 @@ ioc3_change_speed(struct uart_port *the_port,
988988 }
989989 baud = uart_get_baud_rate (the_port , new_termios , old_termios ,
990990 MIN_BAUD_SUPPORTED , MAX_BAUD_SUPPORTED );
991- DPRINT_CONFIG (("%s: returned baud %d for line %d\n" , __FUNCTION__ , baud ,
991+ DPRINT_CONFIG (("%s: returned baud %d for line %d\n" , __func__ , baud ,
992992 the_port -> line ));
993993
994994 if (!the_port -> fifosize )
@@ -1026,7 +1026,7 @@ ioc3_change_speed(struct uart_port *the_port,
10261026 DPRINT_CONFIG (("%s : port 0x%p line %d cflag 0%o "
10271027 "config_port(baud %d data %d stop %d penable %d "
10281028 " parity %d), notification 0x%x\n" ,
1029- __FUNCTION__ , (void * )port , the_port -> line , cflag , baud ,
1029+ __func__ , (void * )port , the_port -> line , cflag , baud ,
10301030 new_data , new_stop , new_parity_enable , new_parity ,
10311031 the_port -> ignore_status_mask ));
10321032
@@ -1919,7 +1919,7 @@ static inline int ioc3_serial_core_attach( struct ioc3_submodule *is,
19191919 struct pci_dev * pdev = idd -> pdev ;
19201920
19211921 DPRINT_CONFIG (("%s: attach pdev 0x%p - card_ptr 0x%p\n" ,
1922- __FUNCTION__ , pdev , (void * )card_ptr ));
1922+ __func__ , pdev , (void * )card_ptr ));
19231923
19241924 if (!card_ptr )
19251925 return - ENODEV ;
@@ -1933,7 +1933,7 @@ static inline int ioc3_serial_core_attach( struct ioc3_submodule *is,
19331933 port -> ip_port = the_port ;
19341934
19351935 DPRINT_CONFIG (("%s: attach the_port 0x%p / port 0x%p [%d/%d]\n" ,
1936- __FUNCTION__ , (void * )the_port , (void * )port ,
1936+ __func__ , (void * )the_port , (void * )port ,
19371937 phys_port , ii ));
19381938
19391939 /* membase, iobase and mapbase just need to be non-0 */
@@ -1950,7 +1950,7 @@ static inline int ioc3_serial_core_attach( struct ioc3_submodule *is,
19501950 if (uart_add_one_port (& ioc3_uart , the_port ) < 0 ) {
19511951 printk (KERN_WARNING
19521952 "%s: unable to add port %d bus %d\n" ,
1953- __FUNCTION__ , the_port -> line , pdev -> bus -> number );
1953+ __func__ , the_port -> line , pdev -> bus -> number );
19541954 } else {
19551955 DPRINT_CONFIG (("IOC3 serial port %d irq %d bus %d\n" ,
19561956 the_port -> line , the_port -> irq , pdev -> bus -> number ));
@@ -2017,7 +2017,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
20172017 struct ioc3_port * ports [PORTS_PER_CARD ];
20182018 int phys_port ;
20192019
2020- DPRINT_CONFIG (("%s (0x%p, 0x%p)\n" , __FUNCTION__ , is , idd ));
2020+ DPRINT_CONFIG (("%s (0x%p, 0x%p)\n" , __func__ , is , idd ));
20212021
20222022 card_ptr = kzalloc (sizeof (struct ioc3_card ), GFP_KERNEL );
20232023 if (!card_ptr ) {
@@ -2067,7 +2067,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
20672067
20682068 DPRINT_CONFIG (("%s : Port A ip_serial_regs 0x%p "
20692069 "ip_uart_regs 0x%p\n" ,
2070- __FUNCTION__ ,
2070+ __func__ ,
20712071 (void * )port -> ip_serial_regs ,
20722072 (void * )port -> ip_uart_regs ));
20732073
@@ -2082,7 +2082,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
20822082 DPRINT_CONFIG (("%s : Port A ip_cpu_ringbuf 0x%p "
20832083 "ip_dma_ringbuf 0x%p, ip_inring 0x%p "
20842084 "ip_outring 0x%p\n" ,
2085- __FUNCTION__ ,
2085+ __func__ ,
20862086 (void * )port -> ip_cpu_ringbuf ,
20872087 (void * )port -> ip_dma_ringbuf ,
20882088 (void * )port -> ip_inring ,
@@ -2094,7 +2094,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
20942094
20952095 DPRINT_CONFIG (("%s : Port B ip_serial_regs 0x%p "
20962096 "ip_uart_regs 0x%p\n" ,
2097- __FUNCTION__ ,
2097+ __func__ ,
20982098 (void * )port -> ip_serial_regs ,
20992099 (void * )port -> ip_uart_regs ));
21002100
@@ -2108,15 +2108,15 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
21082108 DPRINT_CONFIG (("%s : Port B ip_cpu_ringbuf 0x%p "
21092109 "ip_dma_ringbuf 0x%p, ip_inring 0x%p "
21102110 "ip_outring 0x%p\n" ,
2111- __FUNCTION__ ,
2111+ __func__ ,
21122112 (void * )port -> ip_cpu_ringbuf ,
21132113 (void * )port -> ip_dma_ringbuf ,
21142114 (void * )port -> ip_inring ,
21152115 (void * )port -> ip_outring ));
21162116 }
21172117
21182118 DPRINT_CONFIG (("%s : port %d [addr 0x%p] card_ptr 0x%p" ,
2119- __FUNCTION__ ,
2119+ __func__ ,
21202120 phys_port , (void * )port , (void * )card_ptr ));
21212121 DPRINT_CONFIG ((" ip_serial_regs 0x%p ip_uart_regs 0x%p\n" ,
21222122 (void * )port -> ip_serial_regs ,
@@ -2127,7 +2127,7 @@ ioc3uart_probe(struct ioc3_submodule *is, struct ioc3_driver_data *idd)
21272127
21282128 DPRINT_CONFIG (("%s: phys_port %d port 0x%p inring 0x%p "
21292129 "outring 0x%p\n" ,
2130- __FUNCTION__ ,
2130+ __func__ ,
21312131 phys_port , (void * )port ,
21322132 (void * )port -> ip_inring ,
21332133 (void * )port -> ip_outring ));
@@ -2170,7 +2170,7 @@ static int __devinit ioc3uart_init(void)
21702170 if ((ret = uart_register_driver (& ioc3_uart )) < 0 ) {
21712171 printk (KERN_WARNING
21722172 "%s: Couldn't register IOC3 uart serial driver\n" ,
2173- __FUNCTION__ );
2173+ __func__ );
21742174 return ret ;
21752175 }
21762176 ret = ioc3_register_submodule (& ioc3uart_submodule );
0 commit comments