Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9404895pxu; Mon, 28 Dec 2020 15:23:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyCzwcZkfPZr4s2o+s9irKH8onOoqbwCkdb1dtUlF0R+RWE7OrsSRcL8l7kC+kNTWHALL+2 X-Received: by 2002:a17:906:a008:: with SMTP id p8mr30563707ejy.117.1609197838352; Mon, 28 Dec 2020 15:23:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609197838; cv=none; d=google.com; s=arc-20160816; b=CGVHeTCBYoyJlmbN4Q2iASqxv28k89fulx19rkPlfMrCb8IDp3r5aiAjuJSBpPcn++ RxGSmbFf3/U7+RoIGBjRdtCxa/i8M9YOGF6YLvZbxma3xAeLSpFemmIJa2Xwsd2Zwam1 tsRleIUslQpqbsnJF4ElZ1J9icfLqhhz1AQkbC69qx3I33k4yz6d1fCdQjd0zG15/tbM o22MNcwk2gq/0XHoiINyBrshuiTAYIoGT+6qz3vbal7nd1OtmEVYBLSNpoR4UVn8Hu4U 99JO+2ty7N4U4pT6jyZmotljj23N5cfXGlFC7JbaFa8+1Nxj4gEaCn1gu6+da11pGjly vYhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=bOTP8ZrpUVRvHq9SiiNS60x+DOAivehcVH5kgmf7Ng0=; b=TuYqSJ6BPi0FqdjqsWDMHnJq1xhQyn7fJWJnkchOsMxEOU28hW98hGDkWnU6DbavKC zkn3j2dKTGYqISfluHP3TeTkROSWLRWXEKrKO+V05YNtJNzsprq87sZOPkEYNiuxcUWt z4KrMedmRzl1leG7SGWVtqWCcJiVwkWzWmpLPI87Fh+echKsGvDIBxWUQmryw2ezX0Nb d84D23c3GglmT/CyeRt2pn/YDdcH1+ReWhfB16PsuI9hZ4KWzSMFo1BvP7XNRN7aVM4/ LICizJcMlY+k6yNrrt1vt85ArrJ+x7EM2BLFwfzGO7kph7oY/LinXeD1AWBI6XF9FWlw d8cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="l/Lhr56I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si20553108edr.220.2020.12.28.15.23.36; Mon, 28 Dec 2020 15:23:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="l/Lhr56I"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2502866AbgL1OXn (ORCPT + 99 others); Mon, 28 Dec 2020 09:23:43 -0500 Received: from mail.kernel.org ([198.145.29.99]:58784 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2439198AbgL1OW7 (ORCPT ); Mon, 28 Dec 2020 09:22:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 16CE2206E5; Mon, 28 Dec 2020 14:22:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609165338; bh=Tx1vtWgUCMvdAmoYjMA8T8oel78Nl0iT5cbRkDrgrMk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=l/Lhr56IvNgmIzDCTH9aCQjzm9OaieAYspCjGIZ0rC3XamB82WrB7nh0xPC99Ngt0 m3CPvQ72RN55ymAyVHW5Cp9Ep95jzS+okFd68viofi8C1X0ukTGYpBalVeOo5elMtk ZoazVrlTPcOum9NsANKsSMgewaOdgyA2LNp7lcY8= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Claudiu Beznea , Tudor Ambarus , Stephen Boyd , Sasha Levin Subject: [PATCH 5.10 495/717] clk: at91: sama7g5: fix compilation error Date: Mon, 28 Dec 2020 13:48:13 +0100 Message-Id: <20201228125044.680226617@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Claudiu Beznea [ Upstream commit 91274497c79170aaadc491d4ffe4de35495a060d ] pmc_data_allocate() has been changed. pmc_data_free() was removed. Adapt the code taking this into consideration. With this the programmable clocks were also saved in sama7g5_pmc so that they could be later referenced. Fixes: cb783bbbcf54 ("clk: at91: sama7g5: add clock support for sama7g5") Signed-off-by: Claudiu Beznea Reviewed-by: Tudor Ambarus Tested-by: Tudor Ambarus Link: https://lore.kernel.org/r/1605800597-16720-2-git-send-email-claudiu.beznea@microchip.com Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin --- drivers/clk/at91/sama7g5.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/clk/at91/sama7g5.c b/drivers/clk/at91/sama7g5.c index 0db2ab3eca147..a092a940baa40 100644 --- a/drivers/clk/at91/sama7g5.c +++ b/drivers/clk/at91/sama7g5.c @@ -838,7 +838,7 @@ static void __init sama7g5_pmc_setup(struct device_node *np) sama7g5_pmc = pmc_data_allocate(PMC_I2S1_MUX + 1, nck(sama7g5_systemck), nck(sama7g5_periphck), - nck(sama7g5_gck)); + nck(sama7g5_gck), 8); if (!sama7g5_pmc) return; @@ -980,6 +980,8 @@ static void __init sama7g5_pmc_setup(struct device_node *np) sama7g5_prog_mux_table); if (IS_ERR(hw)) goto err_free; + + sama7g5_pmc->pchws[i] = hw; } for (i = 0; i < ARRAY_SIZE(sama7g5_systemck); i++) { @@ -1052,7 +1054,7 @@ err_free: kfree(alloc_mem); } - pmc_data_free(sama7g5_pmc); + kfree(sama7g5_pmc); } /* Some clks are used for a clocksource */ -- 2.27.0