mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-17 22:49:02 +00:00
x86: tpl: Remove unwanted devicetree string
Update this driver to use of_match_ptr(). This reduces the TPL binary size by about 32 bytes. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
53d59694ce
commit
cee58bd2ad
1 changed files with 3 additions and 1 deletions
|
@ -133,14 +133,16 @@ void spl_board_init(void)
|
|||
* for devices, so the TPL BARs continue to be used. Once U-Boot starts it does
|
||||
* the auto allocation (after relocation).
|
||||
*/
|
||||
#if !CONFIG_IS_ENABLED(OF_PLATDATA)
|
||||
static const struct udevice_id tpl_fake_pci_ids[] = {
|
||||
{ .compatible = "pci-x86" },
|
||||
{ }
|
||||
};
|
||||
#endif
|
||||
|
||||
U_BOOT_DRIVER(pci_x86) = {
|
||||
.name = "pci_x86",
|
||||
.id = UCLASS_SIMPLE_BUS,
|
||||
.of_match = tpl_fake_pci_ids,
|
||||
.of_match = of_match_ptr(tpl_fake_pci_ids),
|
||||
};
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue