Skip to contentSkip to conversation

drivers/atm/nicstar*: small cleanup

PATCH New Adrian Bunk 1 participant 1 message Jan 21, 2005 ATM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/atm/nicstar*: small cleanup

This patch makes two needlessly global functions in nicstarmac.c static.

Since after this change nicstarmac.h contained only one typedef I've moved this typedef to nicstarmac.c and completely removed the header.

---

 drivers/atm/nicstar.c    |    1 -
 drivers/atm/nicstarmac.c |    6 ++++--
 drivers/atm/nicstarmac.h |   13 -------------
 3 files changed, 4 insertions(+), 16 deletions(-)
drivers/atm/nicstarmac.h deleted +0 -13
@@ -1,13 +0,0 @@
-/******************************************************************************
- *
- * 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);
drivers/atm/nicstarmac.c renamed from drivers/atm/nicstarmac.c.old +4 -2
@@ -7,6 +7,8 @@
  * Read this ForeRunner's MAC address from eprom/eeprom
  */
 
+typedef void __iomem *virt_addr_t;
+
 #define CYCLE_DELAY 5
 
 /* This was the original definition
@@ -213,7 +215,7 @@
 }
 
 
-void
+static void
 nicstar_init_eprom( virt_addr_t base )
 {
     u_int32_t val;
@@ -246,7 +248,7 @@
  * above.
  */ 
 
-void
+static void
 nicstar_read_eprom(
     virt_addr_t	base,
     u_int8_t	prom_offset,
drivers/atm/nicstar.c renamed from drivers/atm/nicstar.c.old +0 -1
@@ -54,7 +54,6 @@
 #include <asm/uaccess.h>
 #include <asm/atomic.h>
 #include "nicstar.h"
-#include "nicstarmac.h"
 #ifdef CONFIG_ATM_NICSTAR_USE_SUNI
 #include "suni.h"
 #endif /* CONFIG_ATM_NICSTAR_USE_SUNI */