1. 28 Jun, 2016 40 commits
    • 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
    • Daniel Lezcano's avatar
      clocksource/drivers/pxa: Convert init function to return error · be3aff84
      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>
      be3aff84
    • Daniel Lezcano's avatar
      clocksource/drivers/nomadik-mtu: Convert init function to return error · e46105af
      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>
      e46105af
    • Daniel Lezcano's avatar
      clocksource/drivers/mxs: Convert init function to return error · e1d2b9f0
      Daniel Lezcano authored
      The init function does not return any error, it prints a message, returns and
      lets 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>
      e1d2b9f0
    • Daniel Lezcano's avatar
      clocksource/drivers/mps2-timer: Convert init function to return error · 0cc7afc6
      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>
      0cc7afc6
    • Daniel Lezcano's avatar
      clocksource/drivers/moxart: Convert init function to return error · b7357e65
      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>
      b7357e65
    • Daniel Lezcano's avatar
      clocksource/drivers/mips-gic-timer: Convert init function to return error · d8152bf8
      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>
      d8152bf8
    • Daniel Lezcano's avatar
      clocksource/drivers/meson6_timer.c: Convert init function to return error · ca46acb9
      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>
      ca46acb9
    • Daniel Lezcano's avatar
      clocksource/drivers/h8300_tpu: Convert init function to return error · f2f9900c
      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>
      f2f9900c
    • Daniel Lezcano's avatar
      clocksource/drivers/h8300_timer8: Convert init function to return error · 691f8f87
      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>
      691f8f87
    • Daniel Lezcano's avatar
      clocksource/drivers/h8300_timer16: Convert init function to return error · eacf2091
      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>
      eacf2091
    • Daniel Lezcano's avatar
      clocksource/drivers/arm_global_timer: Convert init function to return error · 5a54c187
      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 <maxime.coquelin@st.com>
      5a54c187
    • Daniel Lezcano's avatar
      clocksource/drivers/arm_arch_timer: Convert init function to return error · 3c0731db
      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>
      3c0731db
    • Daniel Lezcano's avatar
      clocksource/drivers/fsl_ftm_timer: Convert init function to return error · 17c8669d
      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>
      17c8669d
    • Daniel Lezcano's avatar
      clocksource/drivers/clksrc-dbx500: Convert init function to return error · 108a4ed9
      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>
      108a4ed9
    • Daniel Lezcano's avatar
      clocksource/drivers/bcm_kona: Convert init function to return error · 59519774
      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 avatarRay Jui <ray.jui@broadcom.com>
      59519774
    • Daniel Lezcano's avatar
      clocksource/drivers/bcm2835_timer: Convert init function to return error · 524a7f08
      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 avatarEric Anholt <eric@anholt.net>
      524a7f08
    • Daniel Lezcano's avatar
      clocksource/drivers/armv7m_systick: Convert init function to return error · 802fa498
      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 <maxime.coquelin@st.com>
      802fa498