]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: mv64xxx: use clk_{prepare_enable,disable_unprepare}
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Fri, 22 Apr 2016 13:19:53 +0000 (15:19 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 27 Apr 2016 17:03:11 +0000 (19:03 +0200)
commit70719350ca250a8397b74f416a45df3d1868a1d2
tree63e51f88abe93bbaf9ef0226f4b76c994061f746
parent9f4d6f164229d4221272186597d9393f654adbb9
i2c: mv64xxx: use clk_{prepare_enable,disable_unprepare}

Instead of separately calling clk_prepare()/clk_enable(), use
clk_prepare_enable(), and instead of calling
clk_disable()/clk_unprepare(), use clk_disable_unprepare(). Those
handy shortcuts have been introduced specifically to simplify the
numerous call sites were both functions were called in sequence.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c