]> git.karo-electronics.de Git - linux-beck.git/commit
drm/tegra: sor: No need to free devm_ allocated memory
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sat, 24 Sep 2016 20:07:30 +0000 (22:07 +0200)
committerThierry Reding <treding@nvidia.com>
Mon, 7 Nov 2016 12:03:41 +0000 (13:03 +0100)
commit4141e7448b501227967ff274af5f4eadadb6068b
treecdee9ef5c5d16e5c5c048c49f141c484076a7abe
parent87ba3e15fb6e94d8dcce838b5de71814b2d1a768
drm/tegra: sor: No need to free devm_ allocated memory

Memory for the brick clock is allocated by devm_kzalloc(), so there is
no need here to free it explicitly.

The only function that calls tegra_clk_sor_brick_register() is the probe
function and it correctly checks and handles the return value, which, on
failure, will cause devm_ allocated memory to be freed automatically.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c