Commit 6b3b5575 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

sh: ecovec build fix for CONFIG_I2C=n

Allow building the ecovec board support code
even though I2C support is disabled.
Signed-off-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 2839bd61
...@@ -794,6 +794,7 @@ static struct platform_device *ecovec_devices[] __initdata = { ...@@ -794,6 +794,7 @@ static struct platform_device *ecovec_devices[] __initdata = {
&irda_device, &irda_device,
}; };
#ifdef CONFIG_I2C
#define EEPROM_ADDR 0x50 #define EEPROM_ADDR 0x50
static u8 mac_read(struct i2c_adapter *a, u8 command) static u8 mac_read(struct i2c_adapter *a, u8 command)
{ {
...@@ -836,6 +837,12 @@ static void __init sh_eth_init(struct sh_eth_plat_data *pd) ...@@ -836,6 +837,12 @@ static void __init sh_eth_init(struct sh_eth_plat_data *pd)
msleep(10); msleep(10);
} }
} }
#else
static void __init sh_eth_init(struct sh_eth_plat_data *pd)
{
pr_err("unable to read sh_eth MAC address\n");
}
#endif
#define PORT_HIZA 0xA4050158 #define PORT_HIZA 0xA4050158
#define IODRIVEA 0xA405018A #define IODRIVEA 0xA405018A
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment