Commit f998ccdf authored by Mark A. Greer's avatar Mark A. Greer Committed by Kevin Hilman

ARM: DaVinci - Fix warnings from incorrect definition of at24_setup

Fix the definitions of at24_setup() in two davinci board files
that are incorrect.
Signed-off-by: default avatarMark A. Greer <mgreer@mvista.com>
Signed-off-by: default avatarKevin Hilman <khilman@deeprootsystems.com>
parent 8a16ff45
......@@ -415,7 +415,7 @@ static struct pcf857x_platform_data pcf_data_u35 = {
*/
static struct memory_accessor *at24_mem_acc;
static int at24_setup(struct memory_accessor *mem_acc, void *context)
static void at24_setup(struct memory_accessor *mem_acc, void *context)
{
DECLARE_MAC_BUF(mac_str);
char mac_addr[6];
......@@ -429,8 +429,6 @@ static int at24_setup(struct memory_accessor *mem_acc, void *context)
memcpy(dm644x_evm_emac_pdata.mac_addr, mac_addr, 6);
}
return 0;
}
static struct at24_platform_data eeprom_info = {
......
......@@ -64,7 +64,7 @@ static struct davinci_uart_config uart_config __initdata = {
*/
static struct memory_accessor *at24_mem_acc;
static int at24_setup(struct memory_accessor *mem_acc, void *context)
static void at24_setup(struct memory_accessor *mem_acc, void *context)
{
DECLARE_MAC_BUF(mac_str);
char mac_addr[6];
......@@ -78,7 +78,6 @@ static int at24_setup(struct memory_accessor *mem_acc, void *context)
memcpy(dm646x_evm_emac_pdata.mac_addr, mac_addr, 6);
}
return 0;
}
static struct at24_platform_data eeprom_info = {
.byte_len = (256*1024) / 8,
......
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