ARM: 7376/1: clkdev: Implement managed clk_get()
authorMark Brown <broonie@sirena.org.uk>
Thu, 5 Apr 2012 10:42:09 +0000 (11:42 +0100)
committerSimone Willett <swillett@nvidia.com>
Thu, 17 May 2012 20:45:55 +0000 (13:45 -0700)
commitb4cfaf3f20854447427bd20086726c8d3d4f58ad
tree510c57bf0e4e78162289943c256fa0328bfbe322
parent9ff7c60450e8e0196097f0e259b6c45357502934
ARM: 7376/1: clkdev: Implement managed clk_get()

Allow clk API users to simplify their cleanup paths by providing a
managed version of clk_get() and clk_put().

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Cherry-picked from mainline
a8a97db984bdc5e89d42e41891543d2daaf314cb

Change-Id: Ib36c0c82063928937166b6014fca92025bc83878
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/102860
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Stephen Warren <swarren@nvidia.com>
Documentation/driver-model/devres.txt
drivers/clk/clkdev.c
include/linux/clk.h