diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2013-05-16 16:34:10 -0400 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2013-06-05 17:06:44 -0400 |
commit | 4c5c95f53b5cb5666906242a63d4d2c4fd0a0be8 (patch) | |
tree | dbaf96f956bebb038448785ba82f1a006bab87da /drivers/i2c | |
parent | 16874b0709c7c78489de1f502edd33acad2918e8 (diff) |
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>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/busses/i2c-mv64xxx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-mv64xxx.c b/drivers/i2c/busses/i2c-mv64xxx.c index 54b8cf6b6dd0..25e64c445e61 100644 --- a/drivers/i2c/busses/i2c-mv64xxx.c +++ b/drivers/i2c/busses/i2c-mv64xxx.c | |||
@@ -599,7 +599,7 @@ mv64xxx_i2c_probe(struct platform_device *pd) | |||
599 | 599 | ||
600 | #if defined(CONFIG_HAVE_CLK) | 600 | #if defined(CONFIG_HAVE_CLK) |
601 | /* Not all platforms have a clk */ | 601 | /* Not all platforms have a clk */ |
602 | drv_data->clk = clk_get(&pd->dev, NULL); | 602 | drv_data->clk = devm_clk_get(&pd->dev, NULL); |
603 | if (!IS_ERR(drv_data->clk)) { | 603 | if (!IS_ERR(drv_data->clk)) { |
604 | clk_prepare(drv_data->clk); | 604 | clk_prepare(drv_data->clk); |
605 | clk_enable(drv_data->clk); | 605 | clk_enable(drv_data->clk); |