diff options
author | Ben Dooks <ben.dooks@codethink.co.uk> | 2014-01-26 16:05:35 +0000 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2014-01-26 22:48:34 +0100 |
commit | bc8120f17ae87da0850b4e6a806ad88ffd01ca64 (patch) | |
tree | e41afe3176a871a1b7d347c10217430d19bb6dc8 /drivers/mailbox | |
parent | 770540f029ba65a2658b5204d850565ab7f61f1b (diff) | |
download | op-kernel-dev-bc8120f17ae87da0850b4e6a806ad88ffd01ca64.zip op-kernel-dev-bc8120f17ae87da0850b4e6a806ad88ffd01ca64.tar.gz |
i2c: rcar: use devm_clk_get to ensure clock is properly ref-counted
The current i2c-rcar driver does clk_get() without a corresponding
clk_put(). Add the clk to the driver private data and then get it
with the devm functions so that it is released when the driver is
unbound.
Note, we do not call clk_prepare_enable() at this point due to the
very possible magic that is being done by the pm_runtime system
underneath the driver.
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/mailbox')
0 files changed, 0 insertions, 0 deletions