i2c: mediatek: Enable i2c module clock before i2c registers access.
authorJun Gao <jun.gao@mediatek.com>
Tue, 19 Dec 2017 06:51:03 +0000 (14:51 +0800)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 3 Jan 2018 23:54:02 +0000 (00:54 +0100)
commitf6762cedbef91ad1da338538efa811856a717d57
treeecbeae62f6862dd2b6f25fe7b3972df484ef265d
parent5a10e7d7aafd01dd4310185b2de3c3a7e2fcf06e
i2c: mediatek: Enable i2c module clock before i2c registers access.

Make sure i2c module clock has been enabled before i2c registers
access.

Signed-off-by: Jun Gao <jun.gao@mediatek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mt65xx.c