net: rtl8169: Fix build error when DEBUG is on
PATCH 1/1 net: rtl8169: Fix build error when DEBUG is on
When DEBUG_RTL8169 is on, a build error occurs in function 'rtl_init': error: 'dev' undeclared. Fix this.
Signed-off-by Bin Meng <[email protected]>
--- drivers/net/rtl8169.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
drivers/net/rtl8169.c +5 -5
@@ -995,7 +995,7 @@ static int rtl_init(unsigned long dev_ioaddr, const char *name,/* Force RTL8169 in 10/100/1000 Full/Half mode. */ if (option >0 ) {#ifdef DEBUG_RTL8169 -printf ("%s: Force-mode Enabled.\n" , dev->name); +printf ("%s: Force-mode Enabled.\n" , name);#endif Cap10_100 =0 , Cap1000 =0 ;switch (option) {
@@ -1027,7 +1027,7 @@ static int rtl_init(unsigned long dev_ioaddr, const char *name, }else {#ifdef DEBUG_RTL8169 printf ("%s: Auto-negotiation Enabled.\n" , - dev->name); + name);#endif /* enable 10/100 Full/Half Mode, leave PHY_AUTO_NEGO_REG bit4:0 unchanged */ mdio_write(PHY_AUTO_NEGO_REG,
@@ -1054,12 +1054,12 @@ static int rtl_init(unsigned long dev_ioaddr, const char *name,if (option & _1000bpsF) {#ifdef DEBUG_RTL8169 printf ("%s: 1000Mbps Full-duplex operation.\n" , - dev->name); + name);#endif }else {#ifdef DEBUG_RTL8169 printf("%s: %sMbps %s-duplex operation.\n", - dev->name, + name, (option & _100bps) ? "100" : "10", (option & FullDup) ? "Full" :
@@ -1077,7 +1077,7 @@ static int rtl_init(unsigned long dev_ioaddr, const char *name,#ifdef DEBUG_RTL8169 printf ("%s: 1000Mbps Full-duplex operation, TBI Link %s!\n" , - dev->name, + name, (RTL_R32 (TBICSR ) & TBILinkOK) ?"OK" :"Failed" );#endif }
Signature · 1 line
1.8.2.1
PATCH 1/1 net: rtl8169: Fix build error when DEBUG is on
Quoted 4 lines · Bin Meng
When
DEBUG_RTL8169is on, a build error occurs in function 'rtl_init': error: 'dev' undeclared. Fix this.Signed-off-by Bin Meng <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160318/b19c8162/attachment.sig>
PATCH 1/1 net: rtl8169: Fix build error when DEBUG is on
In reply to Bin MengQuoted 4 lines · Bin Meng
When
DEBUG_RTL8169is on, a build error occurs in function 'rtl_init': error: 'dev' undeclared. Fix this.Signed-off-by Bin Meng <[email protected]>
Acked-by Joe Hershberger <[email protected]>
Quoted 6 lines · Bin Meng
When
DEBUG_RTL8169is on, a build error occurs in function 'rtl_init': error: 'dev' undeclared. Fix this.Signed-off-by Bin Meng <[email protected]>Reviewed-by Tom Rini <[email protected]>Acked-by Joe Hershberger <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160327/c5f84d45/attachment.sig>