mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 08:26:59 +00:00
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:
parent
ae6be51ed0
commit
b230eb32c8
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
msleep(10);
|
||||
}
|
||||
|
||||
i2c_put_adapter(a);
|
||||
}
|
||||
#else
|
||||
static void __init sh_eth_init(struct sh_eth_plat_data *pd)
|
||||
|
|
Loading…
Reference in a new issue