u-boot/arch/x86/cpu/intel_common
Michal Suchanek c726fc01cf dm: treewide: Use uclass_first_device_err when accessing one device
There is a number of users that use uclass_first_device to access the
first and (assumed) only device in uclass.

Some check the return value of uclass_first_device and also that a
device was returned which is exactly what uclass_first_device_err does.

Some are not checking that a device was returned and can potentially
crash if no device exists in the uclass. Finally there is one that
returns NULL on error either way.

Convert all of these to use uclass_first_device_err instead, the return
value will be removed from uclass_first_device in a later patch.

Signed-off-by: Michal Suchanek <msuchanek@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
2022-10-17 21:17:12 -06:00
..
acpi.c acpi: Move MCFG implementation to common lib 2022-02-09 12:30:13 -07:00
car.S x86: Update a stale comment about ifdtool 2019-05-08 13:02:10 +08:00
car2.S WS cleanup: remove SPACE(s) followed by TAB 2021-09-30 09:08:16 -04:00
car2_uninit.S x86: Add support for newer CAR schemes 2019-12-15 11:44:18 +08:00
cpu.c dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
cpu_from_spl.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
fast_spi.c x86: spi: Add a way to access the SPI mapping via registers 2020-06-02 09:16:13 +08:00
generic_wifi.c x86: acpi: Add a common routine to write WiFi info 2020-09-25 11:27:15 +08:00
intel_opregion.c x86: Silence some logging statements 2020-11-06 09:51:32 +08:00
itss.c treewide: Use OF_REAL instead of !OF_PLATDATA 2021-09-25 09:46:15 -06:00
lpc.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
lpss.c x86: Add low-power subsystem (lpss) support 2019-12-15 11:44:25 +08:00
Makefile x86: Create a 32/64-bit selection for the app 2021-11-07 18:36:55 +01:00
me_status.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
microcode.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
mrc.c board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
p2sb.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pch.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
report_platform.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00