sh: mach-ecovec24: Add i2c_put_adapter on sh_eth_init

i2c_put_adapter is needed after i2c_get_adapter

Signed-off-by: Kuninori Morimoto <morimoto.kuninori@renesas.com>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
Kuninori Morimoto
2010-03-16 02:01:33 +00:00
committed by Paul Mundt
parent ae6be51ed0
commit b230eb32c8

View File

@@ -836,6 +836,8 @@ static void __init sh_eth_init(struct sh_eth_plat_data *pd)
pd->mac_addr[i] = mac_read(a, 0x10 + i); pd->mac_addr[i] = mac_read(a, 0x10 + i);
msleep(10); msleep(10);
} }
i2c_put_adapter(a);
} }
#else #else
static void __init sh_eth_init(struct sh_eth_plat_data *pd) static void __init sh_eth_init(struct sh_eth_plat_data *pd)