davinci: Factor out emac mac address handling
Factor out the code to extract that mac address from
i2c eeprom.
Signed-off-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Kevin Hilman <khilman@deeprootsystems.com>
diff --git a/arch/arm/mach-davinci/include/mach/emac.h b/arch/arm/mach-davinci/include/mach/emac.h
index 549fcce..beff4fb 100644
--- a/arch/arm/mach-davinci/include/mach/emac.h
+++ b/arch/arm/mach-davinci/include/mach/emac.h
@@ -12,6 +12,7 @@
#define _MACH_DAVINCI_EMAC_H
#include <linux/if_ether.h>
+#include <linux/memory.h>
struct emac_platform_data {
char mac_addr[ETH_ALEN];
@@ -30,7 +31,6 @@
EMAC_VERSION_1, /* DM644x */
EMAC_VERSION_2, /* DM646x */
};
-void davinci_init_emac(struct emac_platform_data *pdata);
+
+void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context);
#endif
-
-