linux/arch/powerpc/platforms
Randy Dunlap 5bb99fd409 powerpc/4xx/cpm: Fix return value of __setup() handler
__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) argument or environment
strings.

Also, error return codes don't mean anything to obsolete_checksetup() --
only non-zero (usually 1) or zero. So return 1 from cpm_powersave_off().

Fixes: d164f6d4f9 ("powerpc/4xx: Add suspend and idle support")
Reported-by: Igor Zhbanov <izh1979@gmail.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220502192941.20955-1-rdunlap@infradead.org
2022-05-04 19:37:47 +10:00
..
4xx powerpc/4xx/cpm: Fix return value of __setup() handler 2022-05-04 19:37:47 +10:00
8xx powerpc/8xx: export 'cpm_setbrg' for modules 2022-05-02 23:02:15 +10:00
40x powerpc/4xx: Complete removal of MSI support 2021-12-09 11:52:20 +01:00
44x powerpc updates for 5.17 2022-01-14 15:17:26 +01:00
52xx powerpc/5xx: Drop unnecessary cast 2022-05-04 19:37:46 +10:00
82xx powerpc: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:41 +01:00
83xx powerpc/83xx/mpc8349emitx: Get rid of of_node assignment 2022-04-21 08:42:47 +10:00
85xx powerpc/85xx: Fix virt_to_phys() off-by-one in smp_85xx_start_cpu() 2022-04-27 21:57:36 +10:00
86xx powerpc/mpc86xx_hpcn: Remove obsolete statement 2022-02-07 21:03:09 +11:00
512x powerpc/512x: Add __init attribute to eligible functions 2021-12-23 22:33:19 +11:00
amigaone powerpc/amigaone: Make amigaone_discover_phbs() static 2021-02-11 23:28:51 +11:00
book3s powerpc/vas: Map paste address only if window is active 2022-03-08 00:04:55 +11:00
cell powerpc: declare unmodified attribute_group usages const 2022-03-08 22:15:32 +11:00
chrp powerpc/time: Fix sparse warnings 2022-05-04 19:37:42 +10:00
embedded6xx powerpc/embedded6xx: Add __init attribute to eligible functions 2021-12-23 22:33:17 +11:00
maple powerpc/64s: Make hash MMU support configurable 2021-12-09 22:40:24 +11:00
microwatt powerpc/microwatt: add POWER9_CPU, clear PPC_64S_HASH_MMU 2021-12-09 22:41:16 +11:00
pasemi bitmap patches for 5.17-rc1 2022-01-23 06:20:44 +02:00
powermac powerpc: No need to initialise statics to 0 2022-05-04 19:37:45 +10:00
powernv powerpc/powernv: Switch from __FUNCTION__ to __func__ 2022-05-04 19:37:44 +10:00
ps3 powerpc: Fix spelling mistake "mesages" -> "messages" in Kconfig 2022-05-04 19:37:44 +10:00
pseries powerpc/pseries/cmm: Remove unneeded variable "ret" 2022-05-04 19:37:43 +10:00
fsl_uli1575.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 152 2019-05-30 11:26:32 -07:00
Kconfig powerpc: Rename PPC_NATIVE to PPC_HASH_MMU_NATIVE 2021-12-02 22:57:22 +11:00
Kconfig.cputype powerpc/64e: Tie PPC_BOOK3E_64 to PPC_FSL_BOOK3E 2022-03-08 22:07:41 +11:00
Makefile powerpc: Add Microwatt platform 2021-06-21 21:15:26 +10:00