summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-davinci/devices.c
diff options
context:
space:
mode:
authorMark A. Greer <mgreer@mvista.com>2009-04-15 21:41:27 +0200
committerKevin Hilman <khilman@deeprootsystems.com>2009-05-29 00:17:47 +0200
commitb14dc0f9942a9c318c6c49f29511d88b3642e2d0 (patch)
treeef9a9f0502c62a059de7ef7bb4949d5f51f8c8d1 /arch/arm/mach-davinci/devices.c
parentdavinci: Remove unused i2c eeprom_read/write routines (diff)
downloadlinux-b14dc0f9942a9c318c6c49f29511d88b3642e2d0.tar.xz
linux-b14dc0f9942a9c318c6c49f29511d88b3642e2d0.zip
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>
Diffstat (limited to 'arch/arm/mach-davinci/devices.c')
-rw-r--r--arch/arm/mach-davinci/devices.c26
1 files changed, 0 insertions, 26 deletions
diff --git a/arch/arm/mach-davinci/devices.c b/arch/arm/mach-davinci/devices.c
index c0195cd3a2cd..c85091c25d11 100644
--- a/arch/arm/mach-davinci/devices.c
+++ b/arch/arm/mach-davinci/devices.c
@@ -254,32 +254,6 @@ struct davinci_timer_instance davinci_timer_instance[2] = {
/*-------------------------------------------------------------------------*/
-#if defined(CONFIG_TI_DAVINCI_EMAC) || defined(CONFIG_TI_DAVINCI_EMAC_MODULE)
-
-void davinci_init_emac(struct emac_platform_data *pdata)
-{
- DECLARE_MAC_BUF(buf);
-
- /* if valid MAC exists, don't re-register */
- if (is_valid_ether_addr(pdata->mac_addr))
- return;
- else {
- /* Use random MAC if none passed */
- random_ether_addr(pdata->mac_addr);
-
- printk(KERN_WARNING "%s: using random MAC addr: %s\n",
- __func__, print_mac(buf, pdata->mac_addr));
- }
-}
-
-#else
-
-void davinci_init_emac(struct emac_platform_data *unused) {}
-
-#endif
-
-/*-------------------------------------------------------------------------*/
-
static int __init davinci_init_devices(void)
{
/* please keep these calls, and their implementations above,