Skip to content

Commit

Permalink
clocksources: Switch back to the clksrc table
Browse files Browse the repository at this point in the history
All the clocksource drivers's init function are now converted to return
an error code. CLOCKSOURCE_OF_DECLARE is no longer used as well as the
clksrc-of table.

Let's convert back the names:
 - CLOCKSOURCE_OF_DECLARE_RET => CLOCKSOURCE_OF_DECLARE
 - clksrc-of-ret              => clksrc-of

Signed-off-by: Daniel Lezcano <[email protected]>

For exynos_mct and samsung_pwm_timer:
Acked-by: Krzysztof Kozlowski <[email protected]>

For arch/arc:
Acked-by: Vineet Gupta <[email protected]>

For mediatek driver:
Acked-by: Matthias Brugger <[email protected]>

For the Rockchip-part
Acked-by: Heiko Stuebner <[email protected]>

For STi :
Acked-by: Patrice Chotard <[email protected]>

For the mps2-timer.c and versatile.c changes:
Acked-by: Liviu Dudau <[email protected]>

For the OXNAS part :
Acked-by: Neil Armstrong <[email protected]>

For LPC32xx driver:
Acked-by: Sylvain Lemieux <[email protected]>

For Broadcom Kona timer change:
Acked-by: Ray Jui <[email protected]>

For Sun4i and Sun5i:
Acked-by: Chen-Yu Tsai <[email protected]>

For Meson6:
Acked-by: Carlo Caione <[email protected]>

For Keystone:
Acked-by: Santosh Shilimkar <[email protected]>

For NPS:
Acked-by: Noam Camus <[email protected]>

For bcm2835:
Acked-by: Eric Anholt <[email protected]>
  • Loading branch information
dlezcano committed Jun 28, 2016
1 parent 8595b1b commit 177cf6e
Show file tree
Hide file tree
Showing 62 changed files with 98 additions and 117 deletions.
6 changes: 3 additions & 3 deletions arch/arc/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ static int __init arc_cs_setup_gfrc(struct device_node *node)

return clocksource_register_hz(&arc_counter_gfrc, arc_timer_freq);
}
CLOCKSOURCE_OF_DECLARE_RET(arc_gfrc, "snps,archs-timer-gfrc", arc_cs_setup_gfrc);
CLOCKSOURCE_OF_DECLARE(arc_gfrc, "snps,archs-timer-gfrc", arc_cs_setup_gfrc);

#endif

Expand Down Expand Up @@ -192,7 +192,7 @@ static int __init arc_cs_setup_rtc(struct device_node *node)

return clocksource_register_hz(&arc_counter_rtc, arc_timer_freq);
}
CLOCKSOURCE_OF_DECLARE_RET(arc_rtc, "snps,archs-timer-rtc", arc_cs_setup_rtc);
CLOCKSOURCE_OF_DECLARE(arc_rtc, "snps,archs-timer-rtc", arc_cs_setup_rtc);

#endif

Expand Down Expand Up @@ -379,7 +379,7 @@ static int __init arc_of_timer_init(struct device_node *np)

return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(arc_clkevt, "snps,arc-timer", arc_of_timer_init);
CLOCKSOURCE_OF_DECLARE(arc_clkevt, "snps,arc-timer", arc_of_timer_init);

/*
* Called from start_kernel() - boot CPU only
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/kernel/smp_twd.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static int __init twd_local_timer_of_register(struct device_node *np)
WARN(err, "twd_local_timer_of_register failed (%d)\n", err);
return err;
}
CLOCKSOURCE_OF_DECLARE_RET(arm_twd_a9, "arm,cortex-a9-twd-timer", twd_local_timer_of_register);
CLOCKSOURCE_OF_DECLARE_RET(arm_twd_a5, "arm,cortex-a5-twd-timer", twd_local_timer_of_register);
CLOCKSOURCE_OF_DECLARE_RET(arm_twd_11mp, "arm,arm11mp-twd-timer", twd_local_timer_of_register);
CLOCKSOURCE_OF_DECLARE(arm_twd_a9, "arm,cortex-a9-twd-timer", twd_local_timer_of_register);
CLOCKSOURCE_OF_DECLARE(arm_twd_a5, "arm,cortex-a5-twd-timer", twd_local_timer_of_register);
CLOCKSOURCE_OF_DECLARE(arm_twd_11mp, "arm,arm11mp-twd-timer", twd_local_timer_of_register);
#endif
2 changes: 1 addition & 1 deletion arch/microblaze/kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -332,5 +332,5 @@ static int __init xilinx_timer_init(struct device_node *timer)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(xilinx_timer, "xlnx,xps-timer-1.00.a",
CLOCKSOURCE_OF_DECLARE(xilinx_timer, "xlnx,xps-timer-1.00.a",
xilinx_timer_init);
2 changes: 1 addition & 1 deletion arch/mips/ralink/cevt-rt3352.c
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,4 @@ static int __init ralink_systick_init(struct device_node *np)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(systick, "ralink,cevt-systick", ralink_systick_init);
CLOCKSOURCE_OF_DECLARE(systick, "ralink,cevt-systick", ralink_systick_init);
2 changes: 1 addition & 1 deletion arch/nios2/kernel/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -352,4 +352,4 @@ void __init time_init(void)
clocksource_probe();
}

CLOCKSOURCE_OF_DECLARE_RET(nios2_timer, ALTR_TIMER_COMPATIBLE, nios2_time_init);
CLOCKSOURCE_OF_DECLARE(nios2_timer, ALTR_TIMER_COMPATIBLE, nios2_time_init);
6 changes: 3 additions & 3 deletions drivers/clocksource/arm_arch_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -784,8 +784,8 @@ static int __init arch_timer_of_init(struct device_node *np)

return arch_timer_init();
}
CLOCKSOURCE_OF_DECLARE_RET(armv7_arch_timer, "arm,armv7-timer", arch_timer_of_init);
CLOCKSOURCE_OF_DECLARE_RET(armv8_arch_timer, "arm,armv8-timer", arch_timer_of_init);
CLOCKSOURCE_OF_DECLARE(armv7_arch_timer, "arm,armv7-timer", arch_timer_of_init);
CLOCKSOURCE_OF_DECLARE(armv8_arch_timer, "arm,armv8-timer", arch_timer_of_init);

static int __init arch_timer_mem_init(struct device_node *np)
{
Expand Down Expand Up @@ -868,7 +868,7 @@ static int __init arch_timer_mem_init(struct device_node *np)
of_node_put(best_frame);
return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(armv7_arch_timer_mem, "arm,armv7-timer-mem",
CLOCKSOURCE_OF_DECLARE(armv7_arch_timer_mem, "arm,armv7-timer-mem",
arch_timer_mem_init);

#ifdef CONFIG_ACPI
Expand Down
2 changes: 1 addition & 1 deletion drivers/clocksource/arm_global_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -358,5 +358,5 @@ static int __init global_timer_of_register(struct device_node *np)
}

/* Only tested on r2p2 and r3p0 */
CLOCKSOURCE_OF_DECLARE_RET(arm_gt, "arm,cortex-a9-global-timer",
CLOCKSOURCE_OF_DECLARE(arm_gt, "arm,cortex-a9-global-timer",
global_timer_of_register);
2 changes: 1 addition & 1 deletion drivers/clocksource/armv7m_systick.c
Original file line number Diff line number Diff line change
Expand Up @@ -81,5 +81,5 @@ static int __init system_timer_of_register(struct device_node *np)
return ret;
}

CLOCKSOURCE_OF_DECLARE_RET(arm_systick, "arm,armv7m-systick",
CLOCKSOURCE_OF_DECLARE(arm_systick, "arm,armv7m-systick",
system_timer_of_register);
2 changes: 1 addition & 1 deletion drivers/clocksource/asm9260_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -238,5 +238,5 @@ static int __init asm9260_timer_init(struct device_node *np)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(asm9260_timer, "alphascale,asm9260-timer",
CLOCKSOURCE_OF_DECLARE(asm9260_timer, "alphascale,asm9260-timer",
asm9260_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/bcm2835_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,5 +142,5 @@ static int __init bcm2835_timer_init(struct device_node *node)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(bcm2835, "brcm,bcm2835-system-timer",
CLOCKSOURCE_OF_DECLARE(bcm2835, "brcm,bcm2835-system-timer",
bcm2835_timer_init);
4 changes: 2 additions & 2 deletions drivers/clocksource/bcm_kona_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,9 +195,9 @@ static int __init kona_timer_init(struct device_node *node)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(brcm_kona, "brcm,kona-timer", kona_timer_init);
CLOCKSOURCE_OF_DECLARE(brcm_kona, "brcm,kona-timer", kona_timer_init);
/*
* bcm,kona-timer is deprecated by brcm,kona-timer
* being kept here for driver compatibility
*/
CLOCKSOURCE_OF_DECLARE_RET(bcm_kona, "bcm,kona-timer", kona_timer_init);
CLOCKSOURCE_OF_DECLARE(bcm_kona, "bcm,kona-timer", kona_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/cadence_ttc_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -539,4 +539,4 @@ static int __init ttc_timer_init(struct device_node *timer)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(ttc, "cdns,ttc", ttc_timer_init);
CLOCKSOURCE_OF_DECLARE(ttc, "cdns,ttc", ttc_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/clksrc-dbx500-prcmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,5 +86,5 @@ static int __init clksrc_dbx500_prcmu_init(struct device_node *node)
#endif
return clocksource_register_hz(&clocksource_dbx500_prcmu, RATE_32K);
}
CLOCKSOURCE_OF_DECLARE_RET(dbx500_prcmu, "stericsson,db8500-prcmu-timer-4",
CLOCKSOURCE_OF_DECLARE(dbx500_prcmu, "stericsson,db8500-prcmu-timer-4",
clksrc_dbx500_prcmu_init);
14 changes: 0 additions & 14 deletions drivers/clocksource/clksrc-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,14 @@
#include <linux/clocksource.h>

extern struct of_device_id __clksrc_of_table[];
extern struct of_device_id __clksrc_ret_of_table[];

static const struct of_device_id __clksrc_of_table_sentinel
__used __section(__clksrc_of_table_end);

static const struct of_device_id __clksrc_ret_of_table_sentinel
__used __section(__clksrc_ret_of_table_end);

void __init clocksource_probe(void)
{
struct device_node *np;
const struct of_device_id *match;
of_init_fn_1 init_func;
of_init_fn_1_ret init_func_ret;
unsigned clocksources = 0;
int ret;
Expand All @@ -41,15 +36,6 @@ void __init clocksource_probe(void)
if (!of_device_is_available(np))
continue;

init_func = match->data;
init_func(np);
clocksources++;
}

for_each_matching_node_and_match(np, __clksrc_ret_of_table, &match) {
if (!of_device_is_available(np))
continue;

init_func_ret = match->data;

ret = init_func_ret(np);
Expand Down
2 changes: 1 addition & 1 deletion drivers/clocksource/clksrc_st_lpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,4 +132,4 @@ static int __init st_clksrc_of_register(struct device_node *np)

return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(ddata, "st,stih407-lpc", st_clksrc_of_register);
CLOCKSOURCE_OF_DECLARE(ddata, "st,stih407-lpc", st_clksrc_of_register);
2 changes: 1 addition & 1 deletion drivers/clocksource/clps711x-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,5 +119,5 @@ static int __init clps711x_timer_init(struct device_node *np)
return -EINVAL;
}
}
CLOCKSOURCE_OF_DECLARE_RET(clps711x, "cirrus,clps711x-timer", clps711x_timer_init);
CLOCKSOURCE_OF_DECLARE(clps711x, "cirrus,clps711x-timer", clps711x_timer_init);
#endif
8 changes: 4 additions & 4 deletions drivers/clocksource/dw_apb_timer_of.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ static int __init dw_apb_timer_init(struct device_node *timer)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(pc3x2_timer, "picochip,pc3x2-timer", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(apb_timer_osc, "snps,dw-apb-timer-osc", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(apb_timer_sp, "snps,dw-apb-timer-sp", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(apb_timer, "snps,dw-apb-timer", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE(pc3x2_timer, "picochip,pc3x2-timer", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE(apb_timer_osc, "snps,dw-apb-timer-osc", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE(apb_timer_sp, "snps,dw-apb-timer-sp", dw_apb_timer_init);
CLOCKSOURCE_OF_DECLARE(apb_timer, "snps,dw-apb-timer", dw_apb_timer_init);
4 changes: 2 additions & 2 deletions drivers/clocksource/exynos_mct.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,5 +627,5 @@ static int __init mct_init_ppi(struct device_node *np)
{
return mct_init_dt(np, MCT_INT_PPI);
}
CLOCKSOURCE_OF_DECLARE_RET(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
CLOCKSOURCE_OF_DECLARE_RET(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);
CLOCKSOURCE_OF_DECLARE(exynos4210, "samsung,exynos4210-mct", mct_init_spi);
CLOCKSOURCE_OF_DECLARE(exynos4412, "samsung,exynos4412-mct", mct_init_ppi);
2 changes: 1 addition & 1 deletion drivers/clocksource/fsl_ftm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -369,4 +369,4 @@ static int __init ftm_timer_init(struct device_node *np)
kfree(priv);
return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(flextimer, "fsl,ftm-timer", ftm_timer_init);
CLOCKSOURCE_OF_DECLARE(flextimer, "fsl,ftm-timer", ftm_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/h8300_timer16.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,5 +187,5 @@ static int __init h8300_16timer_init(struct device_node *node)
return ret;
}

CLOCKSOURCE_OF_DECLARE_RET(h8300_16bit, "renesas,16bit-timer",
CLOCKSOURCE_OF_DECLARE(h8300_16bit, "renesas,16bit-timer",
h8300_16timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/h8300_timer8.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,4 @@ static int __init h8300_8timer_init(struct device_node *node)
return ret;
}

CLOCKSOURCE_OF_DECLARE_RET(h8300_8bit, "renesas,8bit-timer", h8300_8timer_init);
CLOCKSOURCE_OF_DECLARE(h8300_8bit, "renesas,8bit-timer", h8300_8timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/h8300_tpu.c
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,4 @@ static int __init h8300_tpu_init(struct device_node *node)
return ret;
}

CLOCKSOURCE_OF_DECLARE_RET(h8300_tpu, "renesas,tpu", h8300_tpu_init);
CLOCKSOURCE_OF_DECLARE(h8300_tpu, "renesas,tpu", h8300_tpu_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/meson6_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -174,5 +174,5 @@ static int __init meson6_timer_init(struct device_node *node)
1, 0xfffe);
return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(meson6, "amlogic,meson6-timer",
CLOCKSOURCE_OF_DECLARE(meson6, "amlogic,meson6-timer",
meson6_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/mips-gic-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,5 +222,5 @@ static void __init gic_clocksource_of_init(struct device_node *node)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(mips_gic_timer, "mti,gic-timer",
CLOCKSOURCE_OF_DECLARE(mips_gic_timer, "mti,gic-timer",
gic_clocksource_of_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/moxart_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,4 +178,4 @@ static int __init moxart_timer_init(struct device_node *node)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(moxart, "moxa,moxart-timer", moxart_timer_init);
CLOCKSOURCE_OF_DECLARE(moxart, "moxa,moxart-timer", moxart_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/mps2-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,4 +274,4 @@ static int __init mps2_timer_init(struct device_node *np)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(mps2_timer, "arm,mps2-timer", mps2_timer_init);
CLOCKSOURCE_OF_DECLARE(mps2_timer, "arm,mps2-timer", mps2_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/mtk_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,4 +265,4 @@ static int __init mtk_timer_init(struct device_node *node)

return -EINVAL;
}
CLOCKSOURCE_OF_DECLARE_RET(mtk_mt6577, "mediatek,mt6577-timer", mtk_timer_init);
CLOCKSOURCE_OF_DECLARE(mtk_mt6577, "mediatek,mt6577-timer", mtk_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/mxs_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -295,4 +295,4 @@ static int __init mxs_timer_init(struct device_node *np)

return setup_irq(irq, &mxs_timer_irq);
}
CLOCKSOURCE_OF_DECLARE_RET(mxs, "fsl,timrot", mxs_timer_init);
CLOCKSOURCE_OF_DECLARE(mxs, "fsl,timrot", mxs_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/nomadik-mtu.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,5 +284,5 @@ static int __init nmdk_timer_of_init(struct device_node *node)

return nmdk_timer_init(base, irq, pclk, clk);
}
CLOCKSOURCE_OF_DECLARE_RET(nomadik_mtu, "st,nomadik-mtu",
CLOCKSOURCE_OF_DECLARE(nomadik_mtu, "st,nomadik-mtu",
nmdk_timer_of_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/pxa_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ static int __init pxa_timer_dt_init(struct device_node *np)

return pxa_timer_common_init(irq, clk_get_rate(clk));
}
CLOCKSOURCE_OF_DECLARE_RET(pxa_timer, "marvell,pxa-timer", pxa_timer_dt_init);
CLOCKSOURCE_OF_DECLARE(pxa_timer, "marvell,pxa-timer", pxa_timer_dt_init);

/*
* Legacy timer init for non device-tree boards.
Expand Down
4 changes: 2 additions & 2 deletions drivers/clocksource/qcom-timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -273,5 +273,5 @@ static int __init msm_dt_timer_init(struct device_node *np)

return msm_timer_init(freq, 32, irq, !!percpu_offset);
}
CLOCKSOURCE_OF_DECLARE_RET(kpss_timer, "qcom,kpss-timer", msm_dt_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(scss_timer, "qcom,scss-timer", msm_dt_timer_init);
CLOCKSOURCE_OF_DECLARE(kpss_timer, "qcom,kpss-timer", msm_dt_timer_init);
CLOCKSOURCE_OF_DECLARE(scss_timer, "qcom,scss-timer", msm_dt_timer_init);
8 changes: 4 additions & 4 deletions drivers/clocksource/rockchip_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ static int __init rk3399_timer_init(struct device_node *np)
return rk_timer_init(np, TIMER_CONTROL_REG3399);
}

CLOCKSOURCE_OF_DECLARE_RET(rk3288_timer, "rockchip,rk3288-timer",
rk3288_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(rk3399_timer, "rockchip,rk3399-timer",
rk3399_timer_init);
CLOCKSOURCE_OF_DECLARE(rk3288_timer, "rockchip,rk3288-timer",
rk3288_timer_init);
CLOCKSOURCE_OF_DECLARE(rk3399_timer, "rockchip,rk3399-timer",
rk3399_timer_init);
8 changes: 4 additions & 4 deletions drivers/clocksource/samsung_pwm_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ static int __init s3c2410_pwm_clocksource_init(struct device_node *np)
{
return samsung_pwm_alloc(np, &s3c24xx_variant);
}
CLOCKSOURCE_OF_DECLARE_RET(s3c2410_pwm, "samsung,s3c2410-pwm", s3c2410_pwm_clocksource_init);
CLOCKSOURCE_OF_DECLARE(s3c2410_pwm, "samsung,s3c2410-pwm", s3c2410_pwm_clocksource_init);

static const struct samsung_pwm_variant s3c64xx_variant = {
.bits = 32,
Expand All @@ -479,7 +479,7 @@ static int __init s3c64xx_pwm_clocksource_init(struct device_node *np)
{
return samsung_pwm_alloc(np, &s3c64xx_variant);
}
CLOCKSOURCE_OF_DECLARE_RET(s3c6400_pwm, "samsung,s3c6400-pwm", s3c64xx_pwm_clocksource_init);
CLOCKSOURCE_OF_DECLARE(s3c6400_pwm, "samsung,s3c6400-pwm", s3c64xx_pwm_clocksource_init);

static const struct samsung_pwm_variant s5p64x0_variant = {
.bits = 32,
Expand All @@ -492,7 +492,7 @@ static int __init s5p64x0_pwm_clocksource_init(struct device_node *np)
{
return samsung_pwm_alloc(np, &s5p64x0_variant);
}
CLOCKSOURCE_OF_DECLARE_RET(s5p6440_pwm, "samsung,s5p6440-pwm", s5p64x0_pwm_clocksource_init);
CLOCKSOURCE_OF_DECLARE(s5p6440_pwm, "samsung,s5p6440-pwm", s5p64x0_pwm_clocksource_init);

static const struct samsung_pwm_variant s5p_variant = {
.bits = 32,
Expand All @@ -505,5 +505,5 @@ static int __init s5p_pwm_clocksource_init(struct device_node *np)
{
return samsung_pwm_alloc(np, &s5p_variant);
}
CLOCKSOURCE_OF_DECLARE_RET(s5pc100_pwm, "samsung,s5pc100-pwm", s5p_pwm_clocksource_init);
CLOCKSOURCE_OF_DECLARE(s5pc100_pwm, "samsung,s5pc100-pwm", s5p_pwm_clocksource_init);
#endif
2 changes: 1 addition & 1 deletion drivers/clocksource/sun4i_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,5 +226,5 @@ static int __init sun4i_timer_init(struct device_node *node)

return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(sun4i, "allwinner,sun4i-a10-timer",
CLOCKSOURCE_OF_DECLARE(sun4i, "allwinner,sun4i-a10-timer",
sun4i_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/tango_xtal.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ static int __init tango_clocksource_init(struct device_node *np)
return 0;
}

CLOCKSOURCE_OF_DECLARE_RET(tango, "sigma,tick-counter", tango_clocksource_init);
CLOCKSOURCE_OF_DECLARE(tango, "sigma,tick-counter", tango_clocksource_init);
4 changes: 2 additions & 2 deletions drivers/clocksource/tegra20_timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ static int __init tegra20_init_timer(struct device_node *np)

return 0;
}
CLOCKSOURCE_OF_DECLARE_RET(tegra20_timer, "nvidia,tegra20-timer", tegra20_init_timer);
CLOCKSOURCE_OF_DECLARE(tegra20_timer, "nvidia,tegra20-timer", tegra20_init_timer);

static int __init tegra20_init_rtc(struct device_node *np)
{
Expand All @@ -261,4 +261,4 @@ static int __init tegra20_init_rtc(struct device_node *np)

return register_persistent_clock(NULL, tegra_read_persistent_clock64);
}
CLOCKSOURCE_OF_DECLARE_RET(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc);
CLOCKSOURCE_OF_DECLARE(tegra20_rtc, "nvidia,tegra20-rtc", tegra20_init_rtc);
6 changes: 3 additions & 3 deletions drivers/clocksource/time-armada-370-xp.c
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ static int __init armada_xp_timer_init(struct device_node *np)

return armada_370_xp_timer_common_init(np);
}
CLOCKSOURCE_OF_DECLARE_RET(armada_xp, "marvell,armada-xp-timer",
CLOCKSOURCE_OF_DECLARE(armada_xp, "marvell,armada-xp-timer",
armada_xp_timer_init);

static int __init armada_375_timer_init(struct device_node *np)
Expand Down Expand Up @@ -409,7 +409,7 @@ static int __init armada_375_timer_init(struct device_node *np)

return armada_370_xp_timer_common_init(np);
}
CLOCKSOURCE_OF_DECLARE_RET(armada_375, "marvell,armada-375-timer",
CLOCKSOURCE_OF_DECLARE(armada_375, "marvell,armada-375-timer",
armada_375_timer_init);

static int __init armada_370_timer_init(struct device_node *np)
Expand All @@ -432,5 +432,5 @@ static int __init armada_370_timer_init(struct device_node *np)

return armada_370_xp_timer_common_init(np);
}
CLOCKSOURCE_OF_DECLARE_RET(armada_370, "marvell,armada-370-timer",
CLOCKSOURCE_OF_DECLARE(armada_370, "marvell,armada-370-timer",
armada_370_timer_init);
4 changes: 2 additions & 2 deletions drivers/clocksource/time-efm32.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,5 +283,5 @@ static int __init efm32_timer_init(struct device_node *np)

return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(efm32compat, "efm32,timer", efm32_timer_init);
CLOCKSOURCE_OF_DECLARE_RET(efm32, "energymicro,efm32-timer", efm32_timer_init);
CLOCKSOURCE_OF_DECLARE(efm32compat, "efm32,timer", efm32_timer_init);
CLOCKSOURCE_OF_DECLARE(efm32, "energymicro,efm32-timer", efm32_timer_init);
2 changes: 1 addition & 1 deletion drivers/clocksource/time-lpc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,4 +311,4 @@ static int __init lpc32xx_timer_init(struct device_node *np)

return ret;
}
CLOCKSOURCE_OF_DECLARE_RET(lpc32xx_timer, "nxp,lpc3220-timer", lpc32xx_timer_init);
CLOCKSOURCE_OF_DECLARE(lpc32xx_timer, "nxp,lpc3220-timer", lpc32xx_timer_init);
Loading

0 comments on commit 177cf6e

Please sign in to comment.