sh: mach-ecovec24: Add i2c_put_adapter on sh_eth_init
authorKuninori Morimoto <morimoto.kuninori@renesas.com>
Tue, 16 Mar 2010 02:01:33 +0000 (02:01 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 23 Mar 2010 04:19:31 +0000 (13:19 +0900)
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>
arch/sh/boards/mach-ecovec24/setup.c

index 39ed872..6c13b92 100644 (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);
                msleep(10);
        }
+
+       i2c_put_adapter(a);
 }
 #else
 static void __init sh_eth_init(struct sh_eth_plat_data *pd)