From patchwork Mon Jan 22 13:49:45 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 13525502 X-Patchwork-Delegate: geert@linux-m68k.org Received: from albert.telenet-ops.be (albert.telenet-ops.be [195.130.137.90]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id ABBB63D0A9 for ; Mon, 22 Jan 2024 13:49:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.130.137.90 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705931392; cv=none; b=DodQKKx+ysxNGFqXzkKFCoVhQVe0nY37hQm+9AvRhM0vb5ZAVtPcazvgpoQaelt3/lImfKMKxUh9BFi2l/1Eq0KJ/mVudbwcH53cL3fPsgJu+FeoZLGu9Eb1wVCvi89gOIuUY0WWyk57twGjpPqg5hWIEFSW5R8o6btXAxA4jgQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705931392; c=relaxed/simple; bh=JThqksEFWTF8uLx+x7NyMsFlcUdDrQwrkxPKhDD2Yw0=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=WIYuTeqHHlp0W4cYO9bHJX8sRmEBC6BWDN0UsCQJoktFT2a+Pp8XEoukl9lrb4EqjnDtcUawWDiEHZP4ZR1QZJvuCefw7Mw5oNpl6wcGl6buLAnYB64vLDW3D2pb1VZbvk5CK+FzvvMkSiDvIrATdWYVGos+UZvywuZezpQ6Y38= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be; spf=none smtp.mailfrom=linux-m68k.org; arc=none smtp.client-ip=195.130.137.90 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux-m68k.org Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed40:955e:bba5:7ff4:cfb6]) by albert.telenet-ops.be with bizsmtp id dppo2B00D0ZxL6o06ppovs; Mon, 22 Jan 2024 14:49:48 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1rRufb-00GGvS-DN; Mon, 22 Jan 2024 14:49:48 +0100 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1rRugO-00CDwv-CX; Mon, 22 Jan 2024 14:49:48 +0100 From: Geert Uytterhoeven To: Michael Turquette , Stephen Boyd Cc: linux-clk@vger.kernel.org, linux-renesas-soc@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH] clk: renesas: mstp: Remove obsolete clkdev registration Date: Mon, 22 Jan 2024 14:49:45 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-renesas-soc@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 After the DT conversion of SH-Mobile and Armadillo-800-EVA display support, all devices are registered from DT, so we can remove the registration of clkdevs. Add the missing #include , which was included implicitly through before. Signed-off-by: Geert Uytterhoeven Reviewed-by: Niklas Söderlund --- Patch written in 2015 ;-) To be queued in renesas-clk for v6.9. --- drivers/clk/renesas/clk-mstp.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/drivers/clk/renesas/clk-mstp.c b/drivers/clk/renesas/clk-mstp.c index e96457371b4cce88..cab4c89c4d657740 100644 --- a/drivers/clk/renesas/clk-mstp.c +++ b/drivers/clk/renesas/clk-mstp.c @@ -10,7 +10,6 @@ #include #include -#include #include #include #include @@ -19,6 +18,7 @@ #include #include #include +#include #include /* @@ -238,22 +238,12 @@ static void __init cpg_mstp_clocks_init(struct device_node *np) clks[clkidx] = cpg_mstp_clock_register(name, parent_name, clkidx, group); - if (!IS_ERR(clks[clkidx])) { + if (!IS_ERR(clks[clkidx])) group->data.clk_num = max(group->data.clk_num, clkidx + 1); - /* - * Register a clkdev to let board code retrieve the - * clock by name and register aliases for non-DT - * devices. - * - * FIXME: Remove this when all devices that require a - * clock will be instantiated from DT. - */ - clk_register_clkdev(clks[clkidx], name, NULL); - } else { + else pr_err("%s: failed to register %pOFn %s clock (%ld)\n", __func__, np, name, PTR_ERR(clks[clkidx])); - } } of_clk_add_provider(np, of_clk_src_onecell_get, &group->data);