diff options
Diffstat (limited to 'arch/arm/mach-davinci/devices.c')
-rw-r--r-- | arch/arm/mach-davinci/devices.c | 26 |
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] = { | |||
254 | 254 | ||
255 | /*-------------------------------------------------------------------------*/ | 255 | /*-------------------------------------------------------------------------*/ |
256 | 256 | ||
257 | #if defined(CONFIG_TI_DAVINCI_EMAC) || defined(CONFIG_TI_DAVINCI_EMAC_MODULE) | ||
258 | |||
259 | void davinci_init_emac(struct emac_platform_data *pdata) | ||
260 | { | ||
261 | DECLARE_MAC_BUF(buf); | ||
262 | |||
263 | /* if valid MAC exists, don't re-register */ | ||
264 | if (is_valid_ether_addr(pdata->mac_addr)) | ||
265 | return; | ||
266 | else { | ||
267 | /* Use random MAC if none passed */ | ||
268 | random_ether_addr(pdata->mac_addr); | ||
269 | |||
270 | printk(KERN_WARNING "%s: using random MAC addr: %s\n", | ||
271 | __func__, print_mac(buf, pdata->mac_addr)); | ||
272 | } | ||
273 | } | ||
274 | |||
275 | #else | ||
276 | |||
277 | void davinci_init_emac(struct emac_platform_data *unused) {} | ||
278 | |||
279 | #endif | ||
280 | |||
281 | /*-------------------------------------------------------------------------*/ | ||
282 | |||
283 | static int __init davinci_init_devices(void) | 257 | static int __init davinci_init_devices(void) |
284 | { | 258 | { |
285 | /* please keep these calls, and their implementations above, | 259 | /* please keep these calls, and their implementations above, |