From patchwork Wed May 27 20:53:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11573953 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 0516160D for ; Wed, 27 May 2020 20:53:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E0FCD20890 for ; Wed, 27 May 2020 20:53:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590612830; bh=hLSGZEQWdxHnGb3NCznVMrshFsU5QAvYHIqnrYcr84c=; h=From:To:Cc:Subject:Date:List-ID:From; b=hN49eAj5W3yRylFEirhX2Ml8EpYxZHPvk0sdPwLZGe0nQ44xvGX7HYuS3zys9EjGi tX1orfubDgQLS0/5HmqXRg76tMXnc23OUqjfYqBJHZfjE9AqZqitjBZ1jw/IozOx8r fevpvmdGbohyrXL7STXnU9yMPAMMgf1ExKp+w6Ng= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726718AbgE0Uxu (ORCPT ); Wed, 27 May 2020 16:53:50 -0400 Received: from mail.kernel.org ([198.145.29.99]:56884 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726482AbgE0Uxu (ORCPT ); Wed, 27 May 2020 16:53:50 -0400 Received: from localhost.localdomain (unknown [194.230.155.118]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8A95620899; Wed, 27 May 2020 20:53:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590612830; bh=hLSGZEQWdxHnGb3NCznVMrshFsU5QAvYHIqnrYcr84c=; h=From:To:Cc:Subject:Date:From; b=2p+OzkZ7KrA7OzseKO3cDoyHNMEgzbhNWnZwV+vC/BGjhqCAnnTDUcsWjtYb8Siyu 1hAW7RIIhMcyNgj11SaLZRG5Zwe8PNBgKeeTFEYsQMOsH2SoNDjjzgwq2RctW+oCuF Wzc3i6lBAOMM2d2Z0G/tIlY7Qny+hRFkaT4A53Q0= From: Krzysztof Kozlowski To: Yoshinori Sato , Rich Felker , Simon Horman , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH v2] sh: sh4a: Bring back tmu3_device early device Date: Wed, 27 May 2020 22:53:41 +0200 Message-Id: <20200527205341.26232-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org Commit 1399c195ef50 ("sh: Switch to new style TMU device") converted tmu3_device platform device to new style of platform data but removed it from sh7786_early_devices array effectively removing last three timers and causing a warning: arch/sh/kernel/cpu/sh4a/setup-sh7786.c:243:31: warning: ‘tmu3_device’ defined but not used [-Wunused-variable] Fixes: 1399c195ef50 ("sh: Switch to new style TMU device") Signed-off-by: Krzysztof Kozlowski Reviewed-by: Geert Uytterhoeven --- Changes since v1: 1. Add tmu3_device to early device list, as suggested by Geert. 2. Add Fixes tag. --- arch/sh/kernel/cpu/sh4a/setup-sh7786.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c index 4b0db8259e3d..74620f30b19b 100644 --- a/arch/sh/kernel/cpu/sh4a/setup-sh7786.c +++ b/arch/sh/kernel/cpu/sh4a/setup-sh7786.c @@ -391,6 +391,7 @@ static struct platform_device *sh7786_early_devices[] __initdata = { &tmu0_device, &tmu1_device, &tmu2_device, + &tmu3_device, }; static struct platform_device *sh7786_devices[] __initdata = {