Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clk: renesas: mstp: Remove obsolete clkdev registration

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 <linux/slab.h>, which was included implicitly
through <linux/clkdev.h> before.

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/r/e98a6e47ebecc44fa41de6d88b4ed20c6efbd177.1705931322.git.geert+renesas@glider.be

authored by

Geert Uytterhoeven and committed by
Geert Uytterhoeven
4ae2c995 6aa17547

+3 -13
+3 -13
drivers/clk/renesas/clk-mstp.c
··· 10 10 11 11 #include <linux/clk.h> 12 12 #include <linux/clk-provider.h> 13 - #include <linux/clkdev.h> 14 13 #include <linux/clk/renesas.h> 15 14 #include <linux/device.h> 16 15 #include <linux/io.h> ··· 18 19 #include <linux/of_address.h> 19 20 #include <linux/pm_clock.h> 20 21 #include <linux/pm_domain.h> 22 + #include <linux/slab.h> 21 23 #include <linux/spinlock.h> 22 24 23 25 /* ··· 237 237 238 238 clks[clkidx] = cpg_mstp_clock_register(name, parent_name, 239 239 clkidx, group); 240 - if (!IS_ERR(clks[clkidx])) { 240 + if (!IS_ERR(clks[clkidx])) 241 241 group->data.clk_num = max(group->data.clk_num, 242 242 clkidx + 1); 243 - /* 244 - * Register a clkdev to let board code retrieve the 245 - * clock by name and register aliases for non-DT 246 - * devices. 247 - * 248 - * FIXME: Remove this when all devices that require a 249 - * clock will be instantiated from DT. 250 - */ 251 - clk_register_clkdev(clks[clkidx], name, NULL); 252 - } else { 243 + else 253 244 pr_err("%s: failed to register %pOFn %s clock (%ld)\n", 254 245 __func__, np, name, PTR_ERR(clks[clkidx])); 255 - } 256 246 } 257 247 258 248 of_clk_add_provider(np, of_clk_src_onecell_get, &group->data);