net: eepro100: Use plain debug()
Convert all the ifdef DEBUG to plain debug(), no functional change. Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
This commit is contained in:
		
							parent
							
								
									aba283d838
								
							
						
					
					
						commit
						e5352c6bbe
					
				| 
						 | 
					@ -13,8 +13,6 @@
 | 
				
			||||||
#include <miiphy.h>
 | 
					#include <miiphy.h>
 | 
				
			||||||
#include <linux/delay.h>
 | 
					#include <linux/delay.h>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#undef DEBUG
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Ethernet chip registers. */
 | 
					/* Ethernet chip registers. */
 | 
				
			||||||
#define SCBStatus		0	/* Rx/Command Unit Status *Word* */
 | 
					#define SCBStatus		0	/* Rx/Command Unit Status *Word* */
 | 
				
			||||||
#define SCBIntAckByte		1	/* Rx/Command Unit STAT/ACK byte */
 | 
					#define SCBIntAckByte		1	/* Rx/Command Unit STAT/ACK byte */
 | 
				
			||||||
| 
						 | 
					@ -392,10 +390,8 @@ int eepro100_initialize (bd_t * bis)
 | 
				
			||||||
		pci_read_config_dword (devno, PCI_BASE_ADDRESS_0, &iobase);
 | 
							pci_read_config_dword (devno, PCI_BASE_ADDRESS_0, &iobase);
 | 
				
			||||||
		iobase &= ~0xf;
 | 
							iobase &= ~0xf;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#ifdef DEBUG
 | 
							debug("eepro100: Intel i82559 PCI EtherExpressPro @0x%x\n",
 | 
				
			||||||
		printf ("eepro100: Intel i82559 PCI EtherExpressPro @0x%x\n",
 | 
							      iobase);
 | 
				
			||||||
				iobase);
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
		pci_write_config_dword (devno,
 | 
							pci_write_config_dword (devno,
 | 
				
			||||||
					PCI_COMMAND,
 | 
										PCI_COMMAND,
 | 
				
			||||||
| 
						 | 
					@ -810,10 +806,7 @@ static void read_hw_addr (struct eth_device *dev, bd_t * bis)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	if (sum != 0xBABA) {
 | 
						if (sum != 0xBABA) {
 | 
				
			||||||
		memset (dev->enetaddr, 0, ETH_ALEN);
 | 
							memset (dev->enetaddr, 0, ETH_ALEN);
 | 
				
			||||||
#ifdef DEBUG
 | 
							debug("%s: Invalid EEPROM checksum %#4.4x, check settings before activating this device!\n",
 | 
				
			||||||
		printf ("%s: Invalid EEPROM checksum %#4.4x, "
 | 
							      dev->name, sum);
 | 
				
			||||||
			"check settings before activating this device!\n",
 | 
					 | 
				
			||||||
			dev->name, sum);
 | 
					 | 
				
			||||||
#endif
 | 
					 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue