aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/orion
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-03-15 09:32:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-03-15 09:32:17 +0000
commit0e9b97ef76849d2212780386765f62fb29a2dcfb (patch)
tree7e3363e580533f67470ec2f83e1931bca6cbb400 /target/linux/orion
parentadf7c303381caa66fa9b07877f7a7e5fb3aeb824 (diff)
downloadupstream-0e9b97ef76849d2212780386765f62fb29a2dcfb.tar.gz
upstream-0e9b97ef76849d2212780386765f62fb29a2dcfb.tar.bz2
upstream-0e9b97ef76849d2212780386765f62fb29a2dcfb.zip
orion: drop DECLARE_MAC_BUF usage from the DT2 support file
* fixes build error on 2.6.33 * closes #6863 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@20226 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/orion')
-rw-r--r--target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
index 5ce2114460..8ff23f7dd8 100644
--- a/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
+++ b/target/linux/orion/files/arch/arm/mach-orion5x/dt2-setup.c
@@ -294,7 +294,6 @@ static irqreturn_t dt2_power_handler(int irq, void *dev_id)
static void __init dt2_init(void)
{
- DECLARE_MAC_BUF(mac_buf);
/*
* Setup basic Orion functions. Need to be called early.
*/
@@ -318,10 +317,10 @@ static void __init dt2_init(void)
printk(KERN_INFO "Serial: %s\n", dt2_eeprom.fc.dt2_serial_number);
printk(KERN_INFO "Revision: %016x\n", dt2_eeprom.fc.dt2_revision);
- printk(KERN_INFO "DT2: Using MAC address %s for port 0\n",
- print_mac(mac_buf, dt2_eeprom.gw.mac_addr[0]));
- printk(KERN_INFO "DT2: Using MAC address %s for port 1\n",
- print_mac(mac_buf, dt2_eeprom.gw.mac_addr[1]));
+ printk(KERN_INFO "DT2: Using MAC address %pM for port 0\n",
+ dt2_eeprom.gw.mac_addr[0]);
+ printk(KERN_INFO "DT2: Using MAC address %pM for port 1\n",
+ dt2_eeprom.gw.mac_addr[1]);
orion5x_eth_init(&dt2_eth_data);
memcpy(dt2_eth_data.mac_addr, dt2_eeprom.gw.mac_addr[0], 6);