OpenCloudOS-Kernel/drivers/platform/x86/intel
Dan Carpenter f2a6c7e747 platform/x86: intel-uncore-freq: fix uncore_freq_common_init() error codes
Currently the uncore_freq_common_init() return one on success and
zero on failure.  There is only one caller and it has a "forgot to set
the error code" bug.  Change uncore_freq_common_init() to return
negative error codes which makes the code simpler and avoids this kind
of bug in the future.

Fixes: dbce412a77 ("platform/x86/intel-uncore-freq: Split common and enumeration part")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://lore.kernel.org/r/20220304131925.GG28739@kili
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
2022-03-08 16:33:23 +01:00
..
atomisp2 platform/x86: intel_atomisp2: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
int1092 platform/x86: int1092: Fix non sequential device mode handling 2021-10-11 16:38:32 +02:00
int3472 platform/x86: int3472: Add terminator to gpiod_lookup_table 2022-02-21 14:43:47 +01:00
pmc platform/x86: intel_pmc_core: fix memleak on registration failure 2021-12-23 19:30:32 +01:00
pmt platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus 2021-12-22 13:56:19 +01:00
speed_select_if platform/x86: ISST: Fix possible circular locking dependency detected 2022-01-24 10:41:46 +01:00
telemetry platform/x86: intel_telemetry: Move to intel sub-directory 2021-08-20 20:08:09 +02:00
uncore-frequency platform/x86: intel-uncore-freq: fix uncore_freq_common_init() error codes 2022-03-08 16:33:23 +01:00
wmi platform/x86: intel-wmi-thunderbolt: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
Kconfig platform/x86/intel/uncore-freq: Move to uncore-frequency folder 2022-02-17 13:20:30 +01:00
Makefile platform/x86/intel/uncore-freq: Move to uncore-frequency folder 2022-02-17 13:20:30 +01:00
bxtwc_tmu.c platform/x86: intel_bxtwc_tmu: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtdc_ti_pwrbtn.c platform/x86: intel_chtdc_ti_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
chtwc_int33fe.c platform/x86: intel_cht_int33fe: Move to intel directory 2022-02-11 10:52:56 +01:00
crystal_cove_charger.c platform/x86: intel_crystal_cove_charger: Fix IRQ masking / unmasking 2022-01-24 10:41:46 +01:00
hid.c platform/x86: Replace acpi_bus_get_device() 2022-02-03 11:55:57 +01:00
int0002_vgpio.c platform/x86: intel_int0002_vgpio: Use the new soc_intel_is_byt()/_cht() helpers 2021-10-19 17:31:24 +02:00
ishtp_eclite.c HID: intel-ish-hid: fix module device-id handling 2021-11-11 22:45:40 +01:00
mrfld_pwrbtn.c platform/x86: intel_mrfld_pwrbtn: Move to intel sub-directory 2021-08-20 20:00:02 +02:00
oaktrail.c platform/x86: intel_oaktrail: Move to intel sub-directory 2021-08-20 20:11:23 +02:00
punit_ipc.c platform/x86/intel: punit_ipc: Drop wrong use of ACPI_PTR() 2021-09-13 10:36:52 +02:00
rst.c platform/x86: intel-rst: Move to intel sub-directory 2021-08-20 20:09:43 +02:00
sdsi.c platform/x86: Add Intel Software Defined Silicon driver 2022-02-14 11:45:20 +01:00
smartconnect.c platform/x86: intel-smartconnect: Move to intel sub-directory 2021-08-20 20:11:12 +02:00
turbo_max_3.c platform/x86: intel_turbo_max_3: Move to intel sub-directory 2021-08-20 20:11:22 +02:00
vbtn.c platform/x86: Replace acpi_bus_get_device() 2022-02-03 11:55:57 +01:00
vsec.c platform/x86: Add Intel Software Defined Silicon driver 2022-02-14 11:45:20 +01:00
vsec.h platform/x86/intel: Move intel_pmt from MFD to Auxiliary Bus 2021-12-22 13:56:19 +01:00