Commit afdcff09 authored by Chas Williams's avatar Chas Williams Committed by David S. Miller

[ATM]: [nicstar] small cleanup for some globals

Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
Signed-off-by: default avatarChas Williams <chas@cmf.nrl.navy.mil>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 14617e38
...@@ -54,7 +54,6 @@ ...@@ -54,7 +54,6 @@
#include <asm/uaccess.h> #include <asm/uaccess.h>
#include <asm/atomic.h> #include <asm/atomic.h>
#include "nicstar.h" #include "nicstar.h"
#include "nicstarmac.h"
#ifdef CONFIG_ATM_NICSTAR_USE_SUNI #ifdef CONFIG_ATM_NICSTAR_USE_SUNI
#include "suni.h" #include "suni.h"
#endif /* CONFIG_ATM_NICSTAR_USE_SUNI */ #endif /* CONFIG_ATM_NICSTAR_USE_SUNI */
......
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
* Read this ForeRunner's MAC address from eprom/eeprom * Read this ForeRunner's MAC address from eprom/eeprom
*/ */
typedef void __iomem *virt_addr_t;
#define CYCLE_DELAY 5 #define CYCLE_DELAY 5
/* This was the original definition /* This was the original definition
...@@ -213,7 +215,7 @@ read_eprom_byte(virt_addr_t base, u_int8_t offset) ...@@ -213,7 +215,7 @@ read_eprom_byte(virt_addr_t base, u_int8_t offset)
} }
void static void
nicstar_init_eprom( virt_addr_t base ) nicstar_init_eprom( virt_addr_t base )
{ {
u_int32_t val; u_int32_t val;
...@@ -246,7 +248,7 @@ nicstar_init_eprom( virt_addr_t base ) ...@@ -246,7 +248,7 @@ nicstar_init_eprom( virt_addr_t base )
* above. * above.
*/ */
void static void
nicstar_read_eprom( nicstar_read_eprom(
virt_addr_t base, virt_addr_t base,
u_int8_t prom_offset, u_int8_t prom_offset,
......
/******************************************************************************
*
* nicstarmac.h
*
* Header file for nicstarmac.c
*
******************************************************************************/
typedef void __iomem *virt_addr_t;
void nicstar_init_eprom( virt_addr_t base );
void nicstar_read_eprom( virt_addr_t, u_int8_t, u_int8_t *, u_int32_t);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment