OSDN Git Service

video: exynos_dp: use devm_clk_get function
authorDamien Cassou <damien.cassou@lifl.fr>
Wed, 1 Aug 2012 16:20:39 +0000 (18:20 +0200)
committerFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
Thu, 23 Aug 2012 13:08:28 +0000 (13:08 +0000)
commitd913f36e02cf22349f6f517e7985411c4ed7d1d9
tree7f5d432af091ef71fd97d7ff717e5b31bac85e9e
parentc1f383d97c5b0db5d5c75f996bc1b596efa9ebf8
video: exynos_dp: use devm_clk_get function

The devm_clk_get function allocates memory that is released when a driver
detaches. This patch uses this function for data that is allocated in the probe
function of a platform device and is only freed in the remove function.

Additionally, this patch removes a null check after platform_get_resource that
is redundant with the one done by devm_request_and_ioremap.

Signed-off-by: Damien Cassou <damien.cassou@lifl.fr>
Acked-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
drivers/video/exynos/exynos_dp_core.c