1. 28 6月, 2016 40 次提交
    • D
      clocksource/drivers/armv7m_systick: Add the COMPILE_TEST option · e2146d86
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      e2146d86
    • D
      clocksource/drivers/bcm2835: Add the COMPILE_TEST option · 2ea879a7
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      2ea879a7
    • D
      clocksource/drivers/bcm_kona: Remove useless header <asm/mach/time.h> · 40e878aa
      Daniel Lezcano 提交于
      The driver includes the <asm/mach/time.h> header but it is pointless.
      
      Remove it.
      Signed-off-by: NDaniel Lezcano <daniel.lezcano@linaro.org>
      40e878aa
    • D
      clk: Add missing clk_get_sys() stub · b81ea968
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Reviewed-by: NMichael Turquette <mturquette@baylibre.com>
      b81ea968
    • D
      clocksources: Switch back to the clksrc table · 177cf6e5
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      
      For exynos_mct and samsung_pwm_timer:
      Acked-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
      
      For arch/arc:
      Acked-by: NVineet Gupta <vgupta@synopsys.com>
      
      For mediatek driver:
      Acked-by: NMatthias Brugger <matthias.bgg@gmail.com>
      
      For the Rockchip-part
      Acked-by: NHeiko Stuebner <heiko@sntech.de>
      
      For STi :
      Acked-by: NPatrice Chotard <patrice.chotard@st.com>
      
      For the mps2-timer.c and versatile.c changes:
      Acked-by: NLiviu Dudau <Liviu.Dudau@arm.com>
      
      For the OXNAS part :
      Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
      
      For LPC32xx driver:
      Acked-by: NSylvain Lemieux <slemieux.tyco@gmail.com>
      
      For Broadcom Kona timer change:
      Acked-by: NRay Jui <ray.jui@broadcom.com>
      
      For Sun4i and Sun5i:
      Acked-by: NChen-Yu Tsai <wens@csie.org>
      
      For Meson6:
      Acked-by: NCarlo Caione <carlo@caione.org>
      
      For Keystone:
      Acked-by: NSantosh Shilimkar <ssantosh@kernel.org>
      
      For NPS:
      Acked-by: NNoam Camus <noamca@mellanox.com>
      
      For bcm2835:
      Acked-by: NEric Anholt <eric@anholt.net>
      177cf6e5
    • D
      clocksource/drivers/oxnas-rps: Convert init function to return error · 8595b1ba
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NNeil Armstrong <narmstrong@baylibre.com>
      8595b1ba
    • D
      clocksource/drivers/arc: Convert init function to return error · 43d75604
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      43d75604
    • D
      clocksource/drivers/nps: Convert init function to return error · 2d9b6506
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      2d9b6506
    • D
      clocksource/drivers/smp_twd: Convert init function to return error · dcbc0edd
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      dcbc0edd
    • D
      clocksource/drivers/nios2: Convert init function to return error · dd1364a7
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      dd1364a7
    • D
      clocksource/drivers/ralink: Convert init function to return error · 2712616f
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      2712616f
    • D
      clocksource/drivers/microblaze: Convert init function to return error · 05864217
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      05864217
    • D
      clocksource/drivers/zevio: Convert init function to return error · 42452508
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      42452508
    • D
      clocksource/drivers/vt8500: Convert init function to return error · 979d7f28
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      979d7f28
    • D
      clocksource/drivers/vf_pit_timer: Convert init function to return error · b71306e6
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      b71306e6
    • D
      clocksource/drivers/versatile: Convert init function to return error · 86de9628
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NLiviu Dudau <Liviu.Dudau@arm.com>
      86de9628
    • D
      clocksource/drivers/u300: Convert init function to return error · 1ee078fa
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NLinus Walleij <linus.walleij@linaro.org>
      1ee078fa
    • D
      clocksource/drivers/ti-32k: Convert init function to return error · 0a8e7d49
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      0a8e7d49
    • D
      clocksource/drivers/sun5i: Convert init function to return error · e4d9f2ee
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      e4d9f2ee
    • D
      clocksource/drivers/stm32: Convert init function to return error · 38d94c5a
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NMaxime Coquelin <mcoquelin.stm32@gmail.com>
      38d94c5a
    • D
      clocksource/drivers/sp804: Convert init function to return error · 2ef2538b
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      2ef2538b
    • D
      clocksource/drivers/keystone: Convert init function to return error · 53186505
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NSantosh Shilimkar <ssantosh@kernel.org>
      53186505
    • D
      clocksource/drivers/integrator-ap: Convert init function to return error · 76804d05
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      76804d05
    • D
      clocksource/drivers/imx-gpt: Convert init function to return error · c11cd416
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      c11cd416
    • D
      clocksource/drivers/prima2: Convert init function to return error · de23484d
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      de23484d
    • D
      clocksource/drivers/atmel-st: Convert init function to return error · adbaf525
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      adbaf525
    • D
      clocksource/drivers/atmel-pit: Convert init function to return error · 504f34c9
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      504f34c9
    • D
      clocksource/drivers/atlas7: Convert init function to return error · c41c96dd
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      c41c96dd
    • D
      clocksource/drivers/pistachio: Convert init function to return error · 41505a20
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      41505a20
    • D
      clocksource/drivers/orion: Convert init function to return error · fbe4b356
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      fbe4b356
    • D
      clocksource/drivers/time-lpc32xx: Convert init function to return error · 4e2afeb9
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NSylvain Lemieux <slemieux.tyco@gmail.com>
      4e2afeb9
    • D
      clocksource/drivers/time-efm32: Convert init function to return error · dc501113
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
      dc501113
    • D
      clocksource/drivers/time-armada-370-xp: Convert init function to return error · 12549e27
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      12549e27
    • D
      clocksource/drivers/tegra20: Convert init function to return error · 53978bba
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      53978bba
    • D
      clocksource/drivers/tango_xtal: Convert init function to return error · 0683d503
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      Acked-by: NMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
      0683d503
    • D
      clocksource/drivers/sun4i: Convert init function to return error · ce5dc743
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      ce5dc743
    • D
      clocksource/drivers/samsung_pwm: Convert init function to return error · 0993f57b
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      0993f57b
    • D
      clocksource/drivers/qcom: Convert init function to return error · ab51189c
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      ab51189c
    • D
      clocksource/drivers/pxa: Convert init function to return error · be3aff84
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      be3aff84
    • D
      clocksource/drivers/nomadik-mtu: Convert init function to return error · e46105af
      Daniel Lezcano 提交于
      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: NDaniel Lezcano <daniel.lezcano@linaro.org>
      e46105af