mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-18 13:11:31 +00:00
dm: arm: Put driver model I2C drivers before legacy ones
Driver-model I2C drivers can be picked up by the linker script rule for legacy drivers. Change the order to avoid this. We could make the legacy code depend on !CONFIG_DM_I2C but that is not necessary and it is good to keep conditions to a minimum. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
fa78e0a371
commit
4eae498e68
1 changed files with 5 additions and 5 deletions
|
@ -32,17 +32,17 @@ SECTIONS
|
|||
}
|
||||
|
||||
. = ALIGN(4);
|
||||
.u_boot_list : {
|
||||
KEEP(*(SORT(.u_boot_list*_i2c_*)));
|
||||
}
|
||||
|
||||
. = .;
|
||||
#ifdef CONFIG_SPL_DM
|
||||
.u_boot_list : {
|
||||
KEEP(*(SORT(.u_boot_list_*_driver_*)));
|
||||
KEEP(*(SORT(.u_boot_list_*_uclass_*)));
|
||||
}
|
||||
#endif
|
||||
. = .;
|
||||
.u_boot_list : {
|
||||
KEEP(*(SORT(.u_boot_list*_i2c_*)));
|
||||
}
|
||||
|
||||
. = ALIGN(4);
|
||||
|
||||
__image_copy_end = .;
|
||||
|
|
Loading…
Add table
Reference in a new issue