summaryrefslogtreecommitdiff
path: root/drivers/net/rtl8019.c
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2008-01-25 07:54:47 +0100
committerWolfgang Denk <wd@denx.de>2008-02-14 01:11:00 +0100
commit1b769881750030f10743808b9d6013e11f559350 (patch)
treee0dd6eff6a904307be295c1c9f5a900fde589096 /drivers/net/rtl8019.c
parent0c9d42e6b0b83d507335a291e3ea99240038f4b9 (diff)
downloadu-boot-imx-1b769881750030f10743808b9d6013e11f559350.zip
u-boot-imx-1b769881750030f10743808b9d6013e11f559350.tar.gz
u-boot-imx-1b769881750030f10743808b9d6013e11f559350.tar.bz2
Fix remaining CONFIG_COMMANDS
update comments Fix coding style Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'drivers/net/rtl8019.c')
-rw-r--r--drivers/net/rtl8019.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/net/rtl8019.c b/drivers/net/rtl8019.c
index 409a69f..9d62cab 100644
--- a/drivers/net/rtl8019.c
+++ b/drivers/net/rtl8019.c
@@ -36,16 +36,13 @@
#if defined(CONFIG_CMD_NET)
-
/* packet page register access functions */
-
static unsigned char get_reg (unsigned int regno)
{
return (*(unsigned char *) regno);
}
-
static void put_reg (unsigned int regno, unsigned char val)
{
*(volatile unsigned char *) regno = val;
@@ -91,7 +88,6 @@ void rtl8019_get_enetaddr (uchar * addr)
put_reg (RTL8019_COMMAND, RTL8019_PAGE0);
}
-
void eth_halt (void)
{
put_reg (RTL8019_COMMAND, 0x01);
@@ -134,7 +130,6 @@ int eth_init (bd_t * bd)
return 0;
}
-
static unsigned char nic_to_pc (void)
{
unsigned char rec_head_status;
@@ -277,6 +272,6 @@ extern int eth_send (volatile void *packet, int length)
return 0;
}
-#endif /* COMMANDS & CFG_NET */
+#endif /* CONFIG_CMD_NET */
#endif /* CONFIG_DRIVER_RTL8019 */