I2C: mv64xxx: use devm_clk_get() to avoid missing clk_put()
authorRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 16 May 2013 20:34:10 +0000 (21:34 +0100)
committerWolfram Sang <wsa@the-dreams.de>
Wed, 5 Jun 2013 21:06:44 +0000 (23:06 +0200)
commit4c5c95f53b5cb5666906242a63d4d2c4fd0a0be8
treedbaf96f956bebb038448785ba82f1a006bab87da
parent16874b0709c7c78489de1f502edd33acad2918e8
I2C: mv64xxx: use devm_clk_get() to avoid missing clk_put()

This driver forgets to use clk_put().  Rather than adding clk_put(),
lets instead use devm_clk_get() to obtain this clock so that it's
automatically handled on cleanup.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Acked-by: Mark A. Greer <mgreer@animalcreek.com>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/i2c/busses/i2c-mv64xxx.c