memory: samsung: exynos5422-dmc: Fix kfree() of devm-allocated memory and missing...
authorLukasz Luba <l.luba@partner.samsung.com>
Thu, 19 Sep 2019 09:26:40 +0000 (11:26 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Tue, 1 Oct 2019 18:28:38 +0000 (20:28 +0200)
commitd51e6a69f4e9e81cf75bbfdccce60d47e31ad901
tree8653ca51619d9440083ecd5122206198fb0486e2
parent7a5a687ec3e93d3e20d4705507f0648d054b1a9e
memory: samsung: exynos5422-dmc: Fix kfree() of devm-allocated memory and missing static

Fix issues captured by static checkers: use of kfree() on
resource-managed memory and missing 'static' in the private function.

Fixes Smatch warning:
    drivers/memory/samsung/exynos5422-dmc.c:272
        exynos5_init_freq_table() warn: passing devm_ allocated variable to kfree. 'dmc->opp'

Fixes Sparse warning:
    drivers/memory/samsung/exynos5422-dmc.c:736:1:
        warning: symbol 'exynos5_dmc_align_init_freq' was not declared.

Reported-by: kbuild test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Lukasz Luba <l.luba@partner.samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/memory/samsung/exynos5422-dmc.c