diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-12-08 14:53:59 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-12-08 14:53:59 +0100 |
commit | c2b5a7015b7323af4b7c8cf19a06b954f4f09949 (patch) | |
tree | d32f79304bc72bcdbb1f274d9722e15b8aaba65c /arch | |
parent | d3933bd3501bb31c696bee25e183b5511c49759a (diff) | |
parent | 48ba0a1afda33907fcc4ce4119a7762dda5d7404 (diff) | |
download | barebox-c2b5a7015b7323af4b7c8cf19a06b954f4f09949.tar.gz barebox-c2b5a7015b7323af4b7c8cf19a06b954f4f09949.tar.xz |
Merge branch 'for-next/misc'
Diffstat (limited to 'arch')
42 files changed, 42 insertions, 46 deletions
diff --git a/arch/arm/configs/at91rm9200ek_defconfig b/arch/arm/configs/at91rm9200ek_defconfig index 6197b97d58..54e3b1d8b8 100644 --- a/arch/arm/configs/at91rm9200ek_defconfig +++ b/arch/arm/configs/at91rm9200ek_defconfig @@ -22,6 +22,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/at91sam9261ek_defconfig b/arch/arm/configs/at91sam9261ek_defconfig index 591b5feff3..59953d7dae 100644 --- a/arch/arm/configs/at91sam9261ek_defconfig +++ b/arch/arm/configs/at91sam9261ek_defconfig @@ -26,6 +26,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/at91sam9261ek_first_stage_defconfig b/arch/arm/configs/at91sam9261ek_first_stage_defconfig index 6071aea179..465f167238 100644 --- a/arch/arm/configs/at91sam9261ek_first_stage_defconfig +++ b/arch/arm/configs/at91sam9261ek_first_stage_defconfig @@ -27,6 +27,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y diff --git a/arch/arm/configs/at91sam9g10ek_defconfig b/arch/arm/configs/at91sam9g10ek_defconfig index 9c12ed4a49..862d7095ee 100644 --- a/arch/arm/configs/at91sam9g10ek_defconfig +++ b/arch/arm/configs/at91sam9g10ek_defconfig @@ -26,6 +26,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/at91sam9m10g45ek_defconfig b/arch/arm/configs/at91sam9m10g45ek_defconfig index 02bb983999..292b50730d 100644 --- a/arch/arm/configs/at91sam9m10g45ek_defconfig +++ b/arch/arm/configs/at91sam9m10g45ek_defconfig @@ -27,6 +27,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/at91sam9m10ihd_defconfig b/arch/arm/configs/at91sam9m10ihd_defconfig index cc408502ed..a39282d480 100644 --- a/arch/arm/configs/at91sam9m10ihd_defconfig +++ b/arch/arm/configs/at91sam9m10ihd_defconfig @@ -26,6 +26,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y diff --git a/arch/arm/configs/highbank_defconfig b/arch/arm/configs/highbank_defconfig index 3e02c2e32d..cf42d29622 100644 --- a/arch/arm/configs/highbank_defconfig +++ b/arch/arm/configs/highbank_defconfig @@ -22,6 +22,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y diff --git a/arch/arm/configs/mioa701_defconfig b/arch/arm/configs/mioa701_defconfig index 2046880ddb..20f71e9374 100644 --- a/arch/arm/configs/mioa701_defconfig +++ b/arch/arm/configs/mioa701_defconfig @@ -32,6 +32,7 @@ CONFIG_CMD_READLINE=y CONFIG_CMD_LET=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TIME=y CONFIG_CMD_GLOBAL=y diff --git a/arch/arm/configs/nhk8815_defconfig b/arch/arm/configs/nhk8815_defconfig index f86b59c41d..dcb00c0755 100644 --- a/arch/arm/configs/nhk8815_defconfig +++ b/arch/arm/configs/nhk8815_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/phytec-phycard-omap3_defconfig b/arch/arm/configs/phytec-phycard-omap3_defconfig index e4e441a9f5..aefc78d5ca 100644 --- a/arch/arm/configs/phytec-phycard-omap3_defconfig +++ b/arch/arm/configs/phytec-phycard-omap3_defconfig @@ -73,6 +73,7 @@ CONFIG_CMD_FALSE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y CONFIG_CMD_LOGIN=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_PASSWD_MODE_STAR=y CONFIG_CMD_TIME=y diff --git a/arch/arm/configs/pm9261_defconfig b/arch/arm/configs/pm9261_defconfig index 682c65f799..c6df91a090 100644 --- a/arch/arm/configs/pm9261_defconfig +++ b/arch/arm/configs/pm9261_defconfig @@ -20,6 +20,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/rpi_defconfig b/arch/arm/configs/rpi_defconfig index 76029d025f..05c013601d 100644 --- a/arch/arm/configs/rpi_defconfig +++ b/arch/arm/configs/rpi_defconfig @@ -24,6 +24,7 @@ CONFIG_CMD_READLINE=y CONFIG_CMD_LET=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TIME=y CONFIG_CMD_LN=y diff --git a/arch/arm/configs/tny_a9260_defconfig b/arch/arm/configs/tny_a9260_defconfig index 30b675f5ef..7615d229b4 100644 --- a/arch/arm/configs/tny_a9260_defconfig +++ b/arch/arm/configs/tny_a9260_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/tny_a9263_defconfig b/arch/arm/configs/tny_a9263_defconfig index 94d6c1072e..757584a8eb 100644 --- a/arch/arm/configs/tny_a9263_defconfig +++ b/arch/arm/configs/tny_a9263_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/tny_a9g20_defconfig b/arch/arm/configs/tny_a9g20_defconfig index 6e7ae236fb..e25d134ff3 100644 --- a/arch/arm/configs/tny_a9g20_defconfig +++ b/arch/arm/configs/tny_a9g20_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/usb_a9260_defconfig b/arch/arm/configs/usb_a9260_defconfig index b6cb61c9e1..5a2ed02a2a 100644 --- a/arch/arm/configs/usb_a9260_defconfig +++ b/arch/arm/configs/usb_a9260_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/usb_a9263_128mib_defconfig b/arch/arm/configs/usb_a9263_128mib_defconfig index 81c502d77f..b9222e4a9b 100644 --- a/arch/arm/configs/usb_a9263_128mib_defconfig +++ b/arch/arm/configs/usb_a9263_128mib_defconfig @@ -30,6 +30,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/usb_a9263_defconfig b/arch/arm/configs/usb_a9263_defconfig index 78fb26c712..da62f48015 100644 --- a/arch/arm/configs/usb_a9263_defconfig +++ b/arch/arm/configs/usb_a9263_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/usb_a9g20_128mib_defconfig b/arch/arm/configs/usb_a9g20_128mib_defconfig index 11ca9ee359..122e0f6b22 100644 --- a/arch/arm/configs/usb_a9g20_128mib_defconfig +++ b/arch/arm/configs/usb_a9g20_128mib_defconfig @@ -30,6 +30,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/usb_a9g20_defconfig b/arch/arm/configs/usb_a9g20_defconfig index 2934b21b6b..cc99659e59 100644 --- a/arch/arm/configs/usb_a9g20_defconfig +++ b/arch/arm/configs/usb_a9g20_defconfig @@ -29,6 +29,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_ECHO_E=y CONFIG_CMD_LOADB=y diff --git a/arch/arm/configs/versatilepb_defconfig b/arch/arm/configs/versatilepb_defconfig index a447f93292..9f7e0e56ea 100644 --- a/arch/arm/configs/versatilepb_defconfig +++ b/arch/arm/configs/versatilepb_defconfig @@ -32,6 +32,7 @@ CONFIG_CMD_ECHO_E=y CONFIG_CMD_EDIT=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_READLINE=y CONFIG_CMD_TIMEOUT=y diff --git a/arch/arm/configs/vexpress_ca9_defconfig b/arch/arm/configs/vexpress_ca9_defconfig index 1da37793f8..84171c473d 100644 --- a/arch/arm/configs/vexpress_ca9_defconfig +++ b/arch/arm/configs/vexpress_ca9_defconfig @@ -22,6 +22,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y diff --git a/arch/arm/configs/vexpress_defconfig b/arch/arm/configs/vexpress_defconfig index 6ad2c8a164..c7928c45a5 100644 --- a/arch/arm/configs/vexpress_defconfig +++ b/arch/arm/configs/vexpress_defconfig @@ -21,6 +21,7 @@ CONFIG_CMD_PRINTENV=y CONFIG_CMD_READLINE=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_TFTP=y CONFIG_CMD_ECHO_E=y diff --git a/arch/arm/mach-at91/at91rm9200_time.c b/arch/arm/mach-at91/at91rm9200_time.c index 1b73a51d94..ae0172b4f4 100644 --- a/arch/arm/mach-at91/at91rm9200_time.c +++ b/arch/arm/mach-at91/at91rm9200_time.c @@ -70,9 +70,7 @@ static int clocksource_init (void) cs.mult = clocksource_hz2mult(AT91_SLOW_CLOCK, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/arm/mach-at91/at91sam926x_time.c b/arch/arm/mach-at91/at91sam926x_time.c index 06d3e3276e..789e1ec77e 100644 --- a/arch/arm/mach-at91/at91sam926x_time.c +++ b/arch/arm/mach-at91/at91sam926x_time.c @@ -99,9 +99,7 @@ static int at91_pit_probe(struct device_d *dev) cs.mult = clocksource_hz2mult(pit_rate, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } static struct driver_d at91_pit_driver = { diff --git a/arch/arm/mach-ep93xx/clocksource.c b/arch/arm/mach-ep93xx/clocksource.c index 26ab91d2c4..f396d0a0a2 100644 --- a/arch/arm/mach-ep93xx/clocksource.c +++ b/arch/arm/mach-ep93xx/clocksource.c @@ -58,9 +58,7 @@ static int clocksource_init(void) cs.mult = clocksource_hz2mult(TIMER_FREQ, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/arm/mach-mxs/clocksource-imx28.c b/arch/arm/mach-mxs/clocksource-imx28.c index 328ca5d023..d26aa93c36 100644 --- a/arch/arm/mach-mxs/clocksource-imx28.c +++ b/arch/arm/mach-mxs/clocksource-imx28.c @@ -65,9 +65,8 @@ static int imx28_clocksource_init(void) writel(TIMCTRL_UPDATE | TIMCTRL_RELOAD | TIMCTRL_PRESCALE(0) | TIMCTRL_SELECT(0xb), timer_base + TIMCTRL1); imx28_cs.mult = clocksource_hz2mult(CLOCK_TICK_RATE, imx28_cs.shift); - init_clock(&imx28_cs); - return 0; + return init_clock(&imx28_cs); } core_initcall(imx28_clocksource_init); diff --git a/arch/arm/mach-netx/clocksource.c b/arch/arm/mach-netx/clocksource.c index bfce37a062..8f53364e25 100644 --- a/arch/arm/mach-netx/clocksource.c +++ b/arch/arm/mach-netx/clocksource.c @@ -45,9 +45,7 @@ static int clocksource_init (void) cs.mult = clocksource_hz2mult(100 * 1000 * 1000, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/arm/mach-pxa/clocksource.c b/arch/arm/mach-pxa/clocksource.c index 04d090a748..c941f154d4 100644 --- a/arch/arm/mach-pxa/clocksource.c +++ b/arch/arm/mach-pxa/clocksource.c @@ -37,9 +37,7 @@ static int clocksource_init(void) { cs.mult = clocksource_hz2mult(3250000, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/arm/mach-samsung/s3c-timer.c b/arch/arm/mach-samsung/s3c-timer.c index fb3cda074f..b5118fa4f8 100644 --- a/arch/arm/mach-samsung/s3c-timer.c +++ b/arch/arm/mach-samsung/s3c-timer.c @@ -115,8 +115,7 @@ static int s3c_clk_src_init(void) s3c_timer_start(); cs.mult = clocksource_hz2mult(s3c_get_t4_clk(), cs.shift); - init_clock(&cs); - return 0; + return init_clock(&cs); } core_initcall(s3c_clk_src_init); diff --git a/arch/arm/mach-tegra/tegra20-timer.c b/arch/arm/mach-tegra/tegra20-timer.c index ddc70dc8dd..a8e4d7b53d 100644 --- a/arch/arm/mach-tegra/tegra20-timer.c +++ b/arch/arm/mach-tegra/tegra20-timer.c @@ -84,9 +84,8 @@ static int tegra20_timer_probe(struct device_d *dev) writel(reg, timer_base + TIMERUS_USEC_CFG); cs.mult = clocksource_hz2mult(1000000, cs.shift); - init_clock(&cs); - return 0; + return init_clock(&cs); } static __maybe_unused struct of_device_id tegra20_timer_dt_ids[] = { diff --git a/arch/blackfin/lib/clock.c b/arch/blackfin/lib/clock.c index 7a5673f2ce..aaa042a33a 100644 --- a/arch/blackfin/lib/clock.c +++ b/arch/blackfin/lib/clock.c @@ -70,9 +70,7 @@ static int clocksource_init (void) cs.mult = clocksource_hz2mult(get_cclk(), cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/efi/efi/clocksource.c b/arch/efi/efi/clocksource.c index 2f33b43cce..c92c35b112 100644 --- a/arch/efi/efi/clocksource.c +++ b/arch/efi/efi/clocksource.c @@ -54,7 +54,5 @@ int efi_clocksource_init(void) freq = ticks_freq(); - init_clock(&cs); - - return 0; + return init_clock(&cs); } diff --git a/arch/mips/configs/dlink-dir-320_defconfig b/arch/mips/configs/dlink-dir-320_defconfig index ab29cf31be..4c9a06f2b0 100644 --- a/arch/mips/configs/dlink-dir-320_defconfig +++ b/arch/mips/configs/dlink-dir-320_defconfig @@ -37,6 +37,7 @@ CONFIG_CMD_ECHO_E=y CONFIG_CMD_EDIT=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_READLINE=y CONFIG_CMD_TIMEOUT=y diff --git a/arch/mips/configs/qemu-malta_defconfig b/arch/mips/configs/qemu-malta_defconfig index 5a1ca36822..a5af258b19 100644 --- a/arch/mips/configs/qemu-malta_defconfig +++ b/arch/mips/configs/qemu-malta_defconfig @@ -40,6 +40,7 @@ CONFIG_CMD_ECHO_E=y CONFIG_CMD_EDIT=y CONFIG_CMD_MENU=y CONFIG_CMD_MENU_MANAGEMENT=y +CONFIG_CMD_LOGIN=y CONFIG_CMD_PASSWD=y CONFIG_CMD_READLINE=y CONFIG_CMD_TIMEOUT=y diff --git a/arch/mips/lib/csrc-r4k.c b/arch/mips/lib/csrc-r4k.c index c699f2bcc3..5c3f18ff24 100644 --- a/arch/mips/lib/csrc-r4k.c +++ b/arch/mips/lib/csrc-r4k.c @@ -38,8 +38,7 @@ static struct clocksource cs = { static int clocksource_init(void) { cs.mult = clocksource_hz2mult(100000000, cs.shift); - init_clock(&cs); - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/nios2/lib/clock.c b/arch/nios2/lib/clock.c index 67cc778b61..28aed022cc 100644 --- a/arch/nios2/lib/clock.c +++ b/arch/nios2/lib/clock.c @@ -49,9 +49,7 @@ static int clocksource_init(void) cs.mult = clocksource_hz2mult(NIOS_SOPC_TIMER_FREQ, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/openrisc/lib/clock.c b/arch/openrisc/lib/clock.c index 4f36f278af..a171214a53 100644 --- a/arch/openrisc/lib/clock.c +++ b/arch/openrisc/lib/clock.c @@ -38,9 +38,7 @@ static int clocksource_init(void) mtspr(SPR_TTMR, SPR_TTMR_CR | 0xFFFFFF); cs.mult = clocksource_hz2mult(OPENRISC_TIMER_FREQ, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/ppc/mach-mpc5xxx/time.c b/arch/ppc/mach-mpc5xxx/time.c index 8ba0c5c4e3..699a66dff4 100644 --- a/arch/ppc/mach-mpc5xxx/time.c +++ b/arch/ppc/mach-mpc5xxx/time.c @@ -41,9 +41,7 @@ static int clocksource_init(void) cs.mult = clocksource_hz2mult(get_timebase_clock(), cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/ppc/mach-mpc85xx/time.c b/arch/ppc/mach-mpc85xx/time.c index 985ec0919a..9014fce194 100644 --- a/arch/ppc/mach-mpc85xx/time.c +++ b/arch/ppc/mach-mpc85xx/time.c @@ -41,9 +41,7 @@ static int clocksource_init(void) clocks_calc_mult_shift(&cs.mult, &cs.shift, fsl_get_timebase_clock(), NSEC_PER_SEC, 10); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/sandbox/board/clock.c b/arch/sandbox/board/clock.c index 137e20b303..bdea89f002 100644 --- a/arch/sandbox/board/clock.c +++ b/arch/sandbox/board/clock.c @@ -37,9 +37,7 @@ static int clocksource_init (void) { cs.mult = clocksource_hz2mult(1000 * 1000 * 1000, cs.shift); - init_clock(&cs); - - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); diff --git a/arch/x86/mach-i386/pit_timer.c b/arch/x86/mach-i386/pit_timer.c index fbc7a10746..857ba3136c 100644 --- a/arch/x86/mach-i386/pit_timer.c +++ b/arch/x86/mach-i386/pit_timer.c @@ -59,9 +59,8 @@ static struct clocksource cs = { static int clocksource_init (void) { cs.mult = clocksource_hz2mult(1193182, cs.shift); - init_clock(&cs); - return 0; + return init_clock(&cs); } core_initcall(clocksource_init); |