aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/i2c.h
diff options
context:
space:
mode:
authorBen Dooks <ben.dooks@codethink.co.uk>2014-01-26 16:05:35 +0000
committerWolfram Sang <wsa@the-dreams.de>2014-01-26 22:48:34 +0100
commitbc8120f17ae87da0850b4e6a806ad88ffd01ca64 (patch)
treee41afe3176a871a1b7d347c10217430d19bb6dc8 /include/linux/i2c.h
parenti2c: rcar: do not print error if device nacks transfer (diff)
downloadwireguard-linux-bc8120f17ae87da0850b4e6a806ad88ffd01ca64.tar.xz
wireguard-linux-bc8120f17ae87da0850b4e6a806ad88ffd01ca64.zip
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 'include/linux/i2c.h')
0 files changed, 0 insertions, 0 deletions