Commit 4eae498e authored by Simon Glass's avatar Simon Glass
Browse files

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: default avatarSimon Glass <sjg@chromium.org>
parent fa78e0a3
...@@ -32,17 +32,17 @@ SECTIONS ...@@ -32,17 +32,17 @@ SECTIONS
} }
. = ALIGN(4); . = ALIGN(4);
.u_boot_list : {
KEEP(*(SORT(.u_boot_list*_i2c_*)));
}
. = .;
#ifdef CONFIG_SPL_DM #ifdef CONFIG_SPL_DM
.u_boot_list : { .u_boot_list : {
KEEP(*(SORT(.u_boot_list_*_driver_*))); KEEP(*(SORT(.u_boot_list_*_driver_*)));
KEEP(*(SORT(.u_boot_list_*_uclass_*))); KEEP(*(SORT(.u_boot_list_*_uclass_*)));
} }
#endif #endif
. = .;
.u_boot_list : {
KEEP(*(SORT(.u_boot_list*_i2c_*)));
}
. = ALIGN(4); . = ALIGN(4);
__image_copy_end = .; __image_copy_end = .;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment