From patchwork Fri Sep 6 10:13:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukasz Luba X-Patchwork-Id: 11134919 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D2CF313BD for ; Fri, 6 Sep 2019 10:14:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id AF4B120854 for ; Fri, 6 Sep 2019 10:14:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=samsung.com header.i=@samsung.com header.b="A63medX+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390594AbfIFKOI (ORCPT ); Fri, 6 Sep 2019 06:14:08 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:35043 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390279AbfIFKOI (ORCPT ); Fri, 6 Sep 2019 06:14:08 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20190906101407euoutp02944055c3ba2f3739219704becd6420f2~B0dKFxA8R1083310833euoutp028 for ; Fri, 6 Sep 2019 10:14:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20190906101407euoutp02944055c3ba2f3739219704becd6420f2~B0dKFxA8R1083310833euoutp028 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1567764847; bh=WuzwCUYV2cdfl7qLbkBAHqDKsnTlIX0yAhB2QMQqk30=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=A63medX+1JY83V1tg7q6yFeeXbxIlZKFMsLu9c/5GHwI+hJbNYkMrPfisXmXdXgMO k1uP6jOsvoydbvHJu0YwzIqujjcd9IDja1mfMLINtiFIU/JB+bBn77n1i+ydqbVCuq AxyAFez+HHxhWnLlNbE1vYkA0RpUTO0HWwsoJfWI= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p2.samsung.com (KnoxPortal) with ESMTP id 20190906101406eucas1p2dab289502ae4d19bca00c58b64cbb50a~B0dJP-wP_1006510065eucas1p2u; Fri, 6 Sep 2019 10:14:06 +0000 (GMT) Received: from eucas1p2.samsung.com ( [182.198.249.207]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 63.C7.04469.E61327D5; Fri, 6 Sep 2019 11:14:06 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20190906101405eucas1p2e3da7b461810a3a520e76c636a06e486~B0dIkS26A1006510065eucas1p2r; Fri, 6 Sep 2019 10:14:05 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20190906101405eusmtrp1c640308e8ab83c4ae2f8dfd9cdeeaae3~B0dIQh6Mn1272412724eusmtrp1a; Fri, 6 Sep 2019 10:14:05 +0000 (GMT) X-AuditID: cbfec7f2-994db9c000001175-e4-5d72316e83a3 Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2A.9E.04166.D61327D5; Fri, 6 Sep 2019 11:14:05 +0100 (BST) Received: from AMDC3778.DIGITAL.local (unknown [106.120.51.20]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20190906101404eusmtip1d71620cc9f795288ce2881dd16b7cf9e~B0dHYdujW3027130271eusmtip1a; Fri, 6 Sep 2019 10:14:04 +0000 (GMT) From: Lukasz Luba To: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org Cc: b.zolnierkie@samsung.com, krzk@kernel.org, kgene@kernel.org, mark.rutland@arm.com, robh+dt@kernel.org, cw00.choi@samsung.com, kyungmin.park@samsung.com, m.szyprowski@samsung.com, s.nawrocki@samsung.com, myungjoo.ham@samsung.com, willy.mh.wolff.ml@gmail.com, Lukasz Luba Subject: [PATCH 1/3] memory: Exynos5422: minor fixes in DMC Date: Fri, 6 Sep 2019 12:13:42 +0200 Message-Id: <20190906101344.3535-2-l.luba@partner.samsung.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190906101344.3535-1-l.luba@partner.samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA0VSa0hTYRj229nZOY5mxyn5oiNjEZSgZkR8kJmRwf5U0g8rQ2rpybxN3fHS labZTdPZIjOzi3TRprI5dai0Sp3NCpsWalpmKmSaKXijoiLnmfXveZ73eb734eWjCWkt6U3H qdJYtUqZKBeJhebnP+z+qiB11PrmqeW4pthA4t7ZURLfsb4msXbkK4HtdiOFO7InKNyvkWHT SA+J3zaVivBMvhXhYvsTAa62DlD4QW+XAL/PqhDhcxYrhVsnLpB4vn0Yhborqm5XIUVjyQCl MOkviRS1988omicfCxQFdXqkmDGtDKcixcExbGJcBqsODDkkPjpZ8hSlzFPHCrM3aFC/KBe5 0sBshLzOUioXiWkpU4Hgxth3IU9mEfzWF4h4MoPAZLQIlyJll0adg3IEmiu1gn+RvvryBULT IiYAGvSpjoAncw/BfGukAxOMWQD5czIH9mCCwWCqXuwhZNbA2GzjIpYwITD6sw7xy3yh0viM cGBXZivoDNcW6wHTQkFp95yAN4VBt83iDHjAuK2O4rEMXl297GzNgSa/zOk5BSPaW07PZmi1 dZGOzgSzDgxNgby8DUqGvlMOGRg3ePfNna/vBjrzdYKXJXDxvJR3r4W6y53OMiugvKrI+bgC pjVZBH8dHQK7pYksRL4l/5fdRUiPvNh0LimW5YJUbGYAp0zi0lWxAdHJSSa08JVe/bFNN6C5 N4dbEEMj+TIJM5sSJSWVGdzxpBYENCH3lBhqFiRJjPL4CVadfFCd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N2cNW39q9xPZNXBqeEnj7CYbLsgOql4JLmww9bftxYODsvdPtO 0YWsalsu1W9UYinOSDTUYi4qTgQAk7C8yaoCAAA= X-CMS-MailID: 20190906101405eucas1p2e3da7b461810a3a520e76c636a06e486 X-Msg-Generator: CA X-RootMTR: 20190906101405eucas1p2e3da7b461810a3a520e76c636a06e486 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20190906101405eucas1p2e3da7b461810a3a520e76c636a06e486 References: <20190906101344.3535-1-l.luba@partner.samsung.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Small fixes captured by static analyzes. Signed-off-by: Lukasz Luba Reported-by: Krzysztof Kozlowski --- drivers/memory/samsung/exynos5422-dmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/memory/samsung/exynos5422-dmc.c b/drivers/memory/samsung/exynos5422-dmc.c index 8c2ec29a7d57..a809fa997c03 100644 --- a/drivers/memory/samsung/exynos5422-dmc.c +++ b/drivers/memory/samsung/exynos5422-dmc.c @@ -269,7 +269,7 @@ static int exynos5_init_freq_table(struct exynos5_dmc *dmc, return 0; err_free_tables: - kfree(dmc->opp); + devm_kfree(dmc->dev, dmc->opp); err_opp: dev_pm_opp_of_remove_table(dmc->dev); @@ -732,7 +732,7 @@ static struct devfreq_dev_profile exynos5_dmc_df_profile = { * statistics engine which supports only registered values. Thus, some alignment * must be made. */ -unsigned long +static unsigned long exynos5_dmc_align_init_freq(struct exynos5_dmc *dmc, unsigned long bootloader_init_freq) {