1. 28 Jun, 2016 40 commits
    • Daniel Lezcano's avatar
      clocksource/drivers/clps_711x: Add the COMPILE_TEST option · ecf0efdc
      Daniel Lezcano authored
      Change the Kconfig option logic to fullfil with the current approach.
      
      A new Kconfig option is added, CONFIG_CLPS711X_TIMER and is selected by the
      platform. Then the clocksource's Kconfig is changed to make this option
      selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
      up to the platform's Kconfig to select the timer.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      ecf0efdc
    • Daniel Lezcano's avatar
      clocksource/drivers/bcm_kona: Add the COMPILE_TEST option · 1cad71e3
      Daniel Lezcano authored
      Change the Kconfig option logic to fullfil with the current approach.
      
      A new Kconfig option is added, CONFIG_BCM_KONA_TIMER and is selected by the
      platform. Then the clocksource's Kconfig is changed to make this option
      selectable by the user if the COMPILE_TEST option is set. Otherwise, it is
      up to the platform's Kconfig to select the timer.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      1cad71e3
    • Daniel Lezcano's avatar
      clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option · e2146d86
      Daniel Lezcano authored
      In order to increase the compilation test coverage, add the COMPILE_TEST
      so the driver can be compiled even if it does not belong to the platform
      or the architecture.
      
      The io.h header inclusion is also added as it the driver does not compile
      on UM platform.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      e2146d86
    • Daniel Lezcano's avatar
      clocksource/drivers/bcm2835: Add the COMPILE_TEST option · 2ea879a7
      Daniel Lezcano authored
      Change the Kconfig option logic to fullfil with the current approach.
      
      A new Kconfig option is added, CONFIG_BCM2835_TIMER and is selected by the
      platform. Then the clocksource's Kconfig is changed to make this option
      selectable by the user if the COMPILE_TEST option is set. Otherwise, it
      is up to the platform's Kconfig to select the timer.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      2ea879a7
    • Daniel Lezcano's avatar
      clocksource/drivers/bcm_kona: Remove useless header <asm/mach/time.h> · 40e878aa
      Daniel Lezcano authored
      The driver includes the <asm/mach/time.h> header but it is pointless.
      
      Remove it.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      40e878aa
    • Daniel Lezcano's avatar
      clk: Add missing clk_get_sys() stub · b81ea968
      Daniel Lezcano authored
      When compiling with the COMPILE_TEST option set, the clps711x does not
      compile because of the clk_get_sys() noop stub missing.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Reviewed-by: default avatarMichael Turquette <mturquette@baylibre.com>
      b81ea968
    • Daniel Lezcano's avatar
      clocksources: Switch back to the clksrc table · 177cf6e5
      Daniel Lezcano authored
      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: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      
      For exynos_mct and samsung_pwm_timer:
      Acked-by: default avatarKrzysztof Kozlowski <k.kozlowski@samsung.com>
      
      For arch/arc:
      Acked-by: default avatarVineet Gupta <vgupta@synopsys.com>
      
      For mediatek driver:
      Acked-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
      
      For the Rockchip-part
      Acked-by: default avatarHeiko Stuebner <heiko@sntech.de>
      
      For STi :
      Acked-by: default avatarPatrice Chotard <patrice.chotard@st.com>
      
      For the mps2-timer.c and versatile.c changes:
      Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
      
      For the OXNAS part :
      Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      
      For LPC32xx driver:
      Acked-by: default avatarSylvain Lemieux <slemieux.tyco@gmail.com>
      
      For Broadcom Kona timer change:
      Acked-by: default avatarRay Jui <ray.jui@broadcom.com>
      
      For Sun4i and Sun5i:
      Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
      
      For Meson6:
      Acked-by: default avatarCarlo Caione <carlo@caione.org>
      
      For Keystone:
      Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
      
      For NPS:
      Acked-by: default avatarNoam Camus <noamca@mellanox.com>
      
      For bcm2835:
      Acked-by: default avatarEric Anholt <eric@anholt.net>
      177cf6e5
    • Daniel Lezcano's avatar
      clocksource/drivers/oxnas-rps: Convert init function to return error · 8595b1ba
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarNeil Armstrong <narmstrong@baylibre.com>
      8595b1ba
    • Daniel Lezcano's avatar
      clocksource/drivers/arc: Convert init function to return error · 43d75604
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      43d75604
    • Daniel Lezcano's avatar
      clocksource/drivers/nps: Convert init function to return error · 2d9b6506
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      2d9b6506
    • Daniel Lezcano's avatar
      clocksource/drivers/smp_twd: Convert init function to return error · dcbc0edd
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      dcbc0edd
    • Daniel Lezcano's avatar
      clocksource/drivers/nios2: Convert init function to return error · dd1364a7
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      dd1364a7
    • Daniel Lezcano's avatar
      clocksource/drivers/ralink: Convert init function to return error · 2712616f
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      2712616f
    • Daniel Lezcano's avatar
      clocksource/drivers/microblaze: Convert init function to return error · 05864217
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      05864217
    • Daniel Lezcano's avatar
      clocksource/drivers/zevio: Convert init function to return error · 42452508
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      42452508
    • Daniel Lezcano's avatar
      clocksource/drivers/vt8500: Convert init function to return error · 979d7f28
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      979d7f28
    • Daniel Lezcano's avatar
      clocksource/drivers/vf_pit_timer: Convert init function to return error · b71306e6
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      b71306e6
    • Daniel Lezcano's avatar
      clocksource/drivers/versatile: Convert init function to return error · 86de9628
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarLiviu Dudau <Liviu.Dudau@arm.com>
      86de9628
    • Daniel Lezcano's avatar
      clocksource/drivers/u300: Convert init function to return error · 1ee078fa
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
      1ee078fa
    • Daniel Lezcano's avatar
      clocksource/drivers/ti-32k: Convert init function to return error · 0a8e7d49
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      0a8e7d49
    • Daniel Lezcano's avatar
      clocksource/drivers/sun5i: Convert init function to return error · e4d9f2ee
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      e4d9f2ee
    • Daniel Lezcano's avatar
      clocksource/drivers/stm32: Convert init function to return error · 38d94c5a
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarMaxime Coquelin <mcoquelin.stm32@gmail.com>
      38d94c5a
    • Daniel Lezcano's avatar
      clocksource/drivers/sp804: Convert init function to return error · 2ef2538b
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      2ef2538b
    • Daniel Lezcano's avatar
      clocksource/drivers/keystone: Convert init function to return error · 53186505
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarSantosh Shilimkar <ssantosh@kernel.org>
      53186505
    • Daniel Lezcano's avatar
      clocksource/drivers/integrator-ap: Convert init function to return error · 76804d05
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      76804d05
    • Daniel Lezcano's avatar
      clocksource/drivers/imx-gpt: Convert init function to return error · c11cd416
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      c11cd416
    • Daniel Lezcano's avatar
      clocksource/drivers/prima2: Convert init function to return error · de23484d
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      de23484d
    • Daniel Lezcano's avatar
      clocksource/drivers/atmel-st: Convert init function to return error · adbaf525
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      adbaf525
    • Daniel Lezcano's avatar
      clocksource/drivers/atmel-pit: Convert init function to return error · 504f34c9
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      504f34c9
    • Daniel Lezcano's avatar
      clocksource/drivers/atlas7: Convert init function to return error · c41c96dd
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      c41c96dd
    • Daniel Lezcano's avatar
      clocksource/drivers/pistachio: Convert init function to return error · 41505a20
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      41505a20
    • Daniel Lezcano's avatar
      clocksource/drivers/orion: Convert init function to return error · fbe4b356
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      fbe4b356
    • Daniel Lezcano's avatar
      clocksource/drivers/time-lpc32xx: Convert init function to return error · 4e2afeb9
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarSylvain Lemieux <slemieux.tyco@gmail.com>
      4e2afeb9
    • Daniel Lezcano's avatar
      clocksource/drivers/time-efm32: Convert init function to return error · dc501113
      Daniel Lezcano authored
      The init functions do not return any error and let the caller unaware of
      the state of the system.
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      dc501113
    • Daniel Lezcano's avatar
      clocksource/drivers/time-armada-370-xp: Convert init function to return error · 12549e27
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      12549e27
    • Daniel Lezcano's avatar
      clocksource/drivers/tegra20: Convert init function to return error · 53978bba
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
          make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      53978bba
    • Daniel Lezcano's avatar
      clocksource/drivers/tango_xtal: Convert init function to return error · 0683d503
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and leave the caller unaware of the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just returns an error code from the init function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: default avatarMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
      0683d503
    • Daniel Lezcano's avatar
      clocksource/drivers/sun4i: Convert init function to return error · ce5dc743
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      ce5dc743
    • Daniel Lezcano's avatar
      clocksource/drivers/samsung_pwm: Convert init function to return error · 0993f57b
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      0993f57b
    • Daniel Lezcano's avatar
      clocksource/drivers/qcom: Convert init function to return error · ab51189c
      Daniel Lezcano authored
      The init functions do not return any error. They behave as the following:
      
        - panic, thus leading to a kernel crash while another timer may work and
             make the system boot up correctly
      
        or
      
        - print an error and let the caller unaware if the state of the system
      
      Change that by converting the init functions to return an error conforming
      to the CLOCKSOURCE_OF_RET prototype.
      
      Proper error handling (rollback, errno value) will be changed later case
      by case, thus this change just return back an error or success in the init
      function.
      Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
      ab51189c