From patchwork Sat Feb 15 15:28:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11383877 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 79C4814E3 for ; Sat, 15 Feb 2020 15:28:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4F0652084E for ; Sat, 15 Feb 2020 15:28:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581780515; bh=hLSGZEQWdxHnGb3NCznVMrshFsU5QAvYHIqnrYcr84c=; h=From:To:Subject:Date:List-ID:From; b=UAY2i3sRrcIdLRxKnek1kfNt6dFGM/zcmHEWXGJDD8laTfzzhuOuFELS6ZNfn6FGg BP6r77tWsNw9QkhUFoRCoovLqmh6mNgrqTtB/eOKec+LkLkgDlrD41M4OtTt2oXAfU POligvs3hqtRpmMWi6PGzz9YFqr9zovb90F9htE4= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726162AbgBOP2e (ORCPT ); Sat, 15 Feb 2020 10:28:34 -0500 Received: from mail.kernel.org ([198.145.29.99]:37982 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726143AbgBOP2e (ORCPT ); Sat, 15 Feb 2020 10:28:34 -0500 Received: from localhost.localdomain (unknown [194.230.155.125]) (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 C00B22081E; Sat, 15 Feb 2020 15:28:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581780514; bh=hLSGZEQWdxHnGb3NCznVMrshFsU5QAvYHIqnrYcr84c=; h=From:To:Subject:Date:From; b=JpqT9cL8K0KPKzQA05xkkrWZkSO1u/inIKPw2Z5dQwCdp4JIsuJO8fjfqajSxSMWG A+QbmnJCLQyk7x2Xtmxgqus+QPinGVxBccvqOPfRLHvckIBo/5VhOdScx18PVQ3GfO kc9yP1uKxFxFLK6xHRCGwmmcJPcc+9tczXyVwfAU= From: Krzysztof Kozlowski To: Yoshinori Sato , Rich Felker , Geert Uytterhoeven , Krzysztof Kozlowski , linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [RESEND PATCH v2] sh: sh4a: Bring back tmu3_device early device Date: Sat, 15 Feb 2020 16:28:28 +0100 Message-Id: <20200215152828.28439-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 = {