OrangePi_CM5/drivers/clocksource
Randy Dunlap 44a77e52bd clocksource: acpi_pm: fix return value of __setup handler
[ Upstream commit 6a861abceecb68497dd82a324fee45a5332dcece ]

__setup() handlers should return 1 to obsolete_checksetup() in
init/main.c to indicate that the boot option has been handled.
A return of 0 causes the boot option/value to be listed as an Unknown
kernel parameter and added to init's (limited) environment strings.

The __setup() handler interface isn't meant to handle negative return
values -- they are non-zero, so they mean "handled" (like a return
value of 1 does), but that's just a quirk. So return 1 from
parse_pmtmr(). Also print a warning message if kstrtouint() returns
an error.

Fixes: 6b148507d3 ("pmtmr: allow command line override of ioport")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Reported-by: Igor Zhbanov <i.zhbanov@omprussia.ru>
Link: lore.kernel.org/r/64644a2f-4a20-bab3-1e15-3b2cdd0defe3@omprussia.ru
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:40:03 +02:00
..
Kconfig clocksource/drivers/timer-ti-dm: Select TIMER_OF 2021-11-18 14:04:09 +01:00
Makefile
…
acpi_pm.c clocksource: acpi_pm: fix return value of __setup handler 2022-04-08 14:40:03 +02:00
arc_timer.c
…
arm_arch_timer.c clocksource/arm_arch_timer: Improve Allwinner A64 timer workaround 2021-07-19 09:44:59 +02:00
arm_global_timer.c
…
armv7m_systick.c
…
asm9260_timer.c
…
bcm2835_timer.c
…
bcm_kona_timer.c
…
clksrc-dbx500-prcmu.c
…
clksrc_st_lpc.c
…
clps711x-timer.c
…
dummy_timer.c
…
dw_apb_timer.c
…
dw_apb_timer_of.c
…
em_sti.c
…
exynos_mct.c clocksource/drivers/exynos_mct: Handle DTS with higher number of interrupts 2022-04-08 14:40:02 +02:00
h8300_timer8.c
…
h8300_timer16.c
…
h8300_tpu.c
…
hyperv_timer.c
…
i8253.c
…
ingenic-ost.c clocksource/drivers/ingenic_ost: Fix return value check in ingenic_ost_probe() 2021-05-14 09:50:16 +02:00
ingenic-sysost.c
…
ingenic-timer.c
…
jcore-pit.c
…
mips-gic-timer.c
…
mmio.c
…
mps2-timer.c
…
mxs_timer.c
…
nomadik-mtu.c
…
numachip.c
…
renesas-ostm.c
…
samsung_pwm_timer.c
…
scx200_hrt.c
…
sh_cmt.c clocksource/drivers/sh_cmt: Fix wrong setting if don't request IRQ for clock source channel 2021-09-15 09:50:29 +02:00
sh_mtu2.c
…
sh_tmu.c
…
timer-armada-370-xp.c
…
timer-atcpit100.c
…
timer-atlas7.c
…
timer-atmel-pit.c
…
timer-atmel-st.c
…
timer-atmel-tcb.c
…
timer-cadence-ttc.c
…
timer-clint.c
…
timer-cs5535.c
…
timer-davinci.c
…
timer-digicolor.c
…
timer-efm32.c
…
timer-fsl-ftm.c
…
timer-fttmr010.c
…
timer-gx6605s.c
…
timer-imx-gpt.c
…
timer-imx-sysctr.c
…
timer-imx-tpm.c
…
timer-integrator-ap.c
…
timer-ixp4xx.c
…
timer-keystone.c
…
timer-lpc32xx.c
…
timer-mediatek.c
…
timer-meson6.c
…
timer-microchip-pit64b.c clocksource/drivers/timer-microchip-pit64b: Use notrace 2022-04-08 14:40:02 +02:00
timer-milbeaut.c
…
timer-mp-csky.c
…
timer-npcm7xx.c
…
timer-nps.c
…
timer-of.c clocksource/drivers/timer-of: Check return value of of_iomap in timer_of_base_init() 2022-04-08 14:40:02 +02:00
timer-of.h
…
timer-orion.c
…
timer-owl.c
…
timer-oxnas-rps.c
…
timer-pistachio.c
…
timer-prima2.c
…
timer-probe.c
…
timer-pxa.c
…
timer-qcom.c
…
timer-rda.c
…
timer-riscv.c
…
timer-rockchip.c
…
timer-sp.h
…
timer-sp804.c
…
timer-sprd.c
…
timer-stm32-lp.c
…
timer-stm32.c
…
timer-sun4i.c
…
timer-sun5i.c
…
timer-tango-xtal.c
…
timer-tegra.c
…
timer-ti-32k.c
…
timer-ti-dm-systimer.c clocksource/drivers/timer-ti-dm: Fix regression from errata i940 fix 2022-04-08 14:40:01 +02:00
timer-ti-dm.c clocksource/drivers/timer-ti-dm: Save and restore timer TIOCP_CFG 2021-07-14 16:56:12 +02:00
timer-u300.c
…
timer-versatile.c
…
timer-vf-pit.c
…
timer-vt8500.c
…
timer-zevio.c
…