Skip to content

Commit 2fcde64

Browse files
author
Sylwester Nawrocki
committed
clk: samsung: Remove meaningless __init and extern from header files
Remove useless __init atrribute and unneeded extern qualifier in function declarations in header files. Signed-off-by: Sylwester Nawrocki <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Stephen Boyd <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 015e705 commit 2fcde64

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

drivers/clk/samsung/clk-cpu.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct exynos_cpuclk {
6262
#define CLK_CPU_HAS_E5433_REGS_LAYOUT (1 << 2)
6363
};
6464

65-
int __init exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
65+
int exynos_register_cpu_clock(struct samsung_clk_provider *ctx,
6666
unsigned int lookup_id, const char *name,
6767
const struct clk_hw *parent, const struct clk_hw *alt_parent,
6868
unsigned long offset,

drivers/clk/samsung/clk.h

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -337,52 +337,52 @@ struct samsung_cmu_info {
337337
const char *clk_name;
338338
};
339339

340-
extern struct samsung_clk_provider *__init samsung_clk_init(
340+
struct samsung_clk_provider * samsung_clk_init(
341341
struct device_node *np, void __iomem *base,
342342
unsigned long nr_clks);
343-
extern void __init samsung_clk_of_add_provider(struct device_node *np,
343+
void samsung_clk_of_add_provider(struct device_node *np,
344344
struct samsung_clk_provider *ctx);
345-
extern void __init samsung_clk_of_register_fixed_ext(
345+
void samsung_clk_of_register_fixed_ext(
346346
struct samsung_clk_provider *ctx,
347347
struct samsung_fixed_rate_clock *fixed_rate_clk,
348348
unsigned int nr_fixed_rate_clk,
349349
const struct of_device_id *clk_matches);
350350

351-
extern void samsung_clk_add_lookup(struct samsung_clk_provider *ctx,
351+
void samsung_clk_add_lookup(struct samsung_clk_provider *ctx,
352352
struct clk_hw *clk_hw, unsigned int id);
353353

354-
extern void __init samsung_clk_register_alias(struct samsung_clk_provider *ctx,
354+
void samsung_clk_register_alias(struct samsung_clk_provider *ctx,
355355
const struct samsung_clock_alias *list,
356356
unsigned int nr_clk);
357-
extern void __init samsung_clk_register_fixed_rate(
357+
void samsung_clk_register_fixed_rate(
358358
struct samsung_clk_provider *ctx,
359359
const struct samsung_fixed_rate_clock *clk_list,
360360
unsigned int nr_clk);
361-
extern void __init samsung_clk_register_fixed_factor(
361+
void samsung_clk_register_fixed_factor(
362362
struct samsung_clk_provider *ctx,
363363
const struct samsung_fixed_factor_clock *list,
364364
unsigned int nr_clk);
365-
extern void __init samsung_clk_register_mux(struct samsung_clk_provider *ctx,
365+
void samsung_clk_register_mux(struct samsung_clk_provider *ctx,
366366
const struct samsung_mux_clock *clk_list,
367367
unsigned int nr_clk);
368-
extern void __init samsung_clk_register_div(struct samsung_clk_provider *ctx,
368+
void samsung_clk_register_div(struct samsung_clk_provider *ctx,
369369
const struct samsung_div_clock *clk_list,
370370
unsigned int nr_clk);
371-
extern void __init samsung_clk_register_gate(struct samsung_clk_provider *ctx,
371+
void samsung_clk_register_gate(struct samsung_clk_provider *ctx,
372372
const struct samsung_gate_clock *clk_list,
373373
unsigned int nr_clk);
374-
extern void __init samsung_clk_register_pll(struct samsung_clk_provider *ctx,
374+
void samsung_clk_register_pll(struct samsung_clk_provider *ctx,
375375
const struct samsung_pll_clock *pll_list,
376376
unsigned int nr_clk, void __iomem *base);
377-
extern void samsung_clk_register_cpu(struct samsung_clk_provider *ctx,
377+
void samsung_clk_register_cpu(struct samsung_clk_provider *ctx,
378378
const struct samsung_cpu_clock *list, unsigned int nr_clk);
379379

380-
extern struct samsung_clk_provider __init *samsung_cmu_register_one(
380+
struct samsung_clk_provider *samsung_cmu_register_one(
381381
struct device_node *,
382382
const struct samsung_cmu_info *);
383383

384384
#ifdef CONFIG_PM_SLEEP
385-
extern void samsung_clk_extended_sleep_init(void __iomem *reg_base,
385+
void samsung_clk_extended_sleep_init(void __iomem *reg_base,
386386
const unsigned long *rdump,
387387
unsigned long nr_rdump,
388388
const struct samsung_clk_reg_dump *rsuspend,
@@ -397,13 +397,13 @@ static inline void samsung_clk_extended_sleep_init(void __iomem *reg_base,
397397
#define samsung_clk_sleep_init(reg_base, rdump, nr_rdump) \
398398
samsung_clk_extended_sleep_init(reg_base, rdump, nr_rdump, NULL, 0)
399399

400-
extern void samsung_clk_save(void __iomem *base,
400+
void samsung_clk_save(void __iomem *base,
401401
struct samsung_clk_reg_dump *rd,
402402
unsigned int num_regs);
403-
extern void samsung_clk_restore(void __iomem *base,
403+
void samsung_clk_restore(void __iomem *base,
404404
const struct samsung_clk_reg_dump *rd,
405405
unsigned int num_regs);
406-
extern struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump(
406+
struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump(
407407
const unsigned long *rdump,
408408
unsigned long nr_rdump);
409409

0 commit comments

Comments
 (0)