u-boot/arch/x86/cpu
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
..
apollolake serial: Replace CONFIG_DEBUG_UART_BASE by CONFIG_VAL(DEBUG_UART_BASE) 2022-06-06 18:01:21 -04:00
baytrail pci: Add mask parameter to dm_pci_map_bar() 2022-05-03 18:33:29 -04:00
braswell common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
broadwell dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
coreboot board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
efi board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
i386 x86: Don't set up MTRRs if previously done 2021-07-15 19:50:00 +08:00
intel_common dm: treewide: Use uclass_first_device_err when accessing one device 2022-10-17 21:17:12 -06:00
ivybridge board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
qemu board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
quark board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
queensbay x86: queensbay: Return directly if IGD / SDVO were already disabled 2021-08-03 00:03:14 +08:00
slimbootloader board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
tangier board_f: Fix types for board_get_usable_ram_top() 2022-09-23 15:12:42 -04:00
x86_64 x86: efi: Tweak the code used for the 64-bit EFI app 2022-01-15 10:57:22 +01:00
acpi_gpe.c x86: acpi_gpe: Update driver name to match devicetree 2021-02-01 15:11:41 +08:00
call32.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
config.mk x86: efi: Don't use the 64-bit link script for the EFI app 2022-01-15 10:57:22 +01:00
cpu.c bootstage: Add SPL support 2021-10-31 12:26:44 -06:00
cpu_x86.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
ioapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
irq.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
lapic.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
Makefile x86: Don't enable SMP in SPL 2020-07-20 09:46:46 +08:00
mp_init.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
mtrr.c doc: replace @return by Return: 2022-01-19 18:11:34 +01:00
pci.c x86: pci: Use PCI_CONF1_ADDRESS() macro 2022-01-12 14:21:24 -05:00
qfw_cpu.c x86: qemu: move QFW to its own uclass 2021-04-12 17:44:55 -04:00
resetvec.S x86: Reduce resetvec size 2019-10-11 17:37:38 +08:00
sipi_vector.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start16.S common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
start64.S x86: start64: Fix copyright message 2019-05-08 13:02:10 +08:00
start_from_spl.S x86: coral: Allow init of debug UART in U-Boot proper 2021-03-27 15:04:30 +13:00
start_from_tpl.S x86: Add more comments to the start-up code 2019-10-08 13:57:36 +08:00
turbo.c common: Drop asm/global_data.h from common header 2021-02-02 15:33:42 -05:00
u-boot-64.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot-spl.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
u-boot.lds linker_lists: Rename sections to remove . prefix 2022-06-23 12:58:18 -04:00
wakeup.S x86: Move acpi_s3.h to include/acpi/ 2020-04-16 14:36:28 +08:00