]> git.dujemihanovic.xyz Git - u-boot.git/commit
timer-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC
authorOvidiu Panait <ovpanait@gmail.com>
Wed, 12 Oct 2022 05:36:55 +0000 (08:36 +0300)
committerMichal Simek <michal.simek@amd.com>
Tue, 22 Nov 2022 14:02:07 +0000 (15:02 +0100)
commit8272d4cb897ca15eef2f39afe488f6731312e5c2
tree20434530c1b238ee89d4113416fc47b501f24769
parent1e766a04c723e003c001c0f1a4f301aef026a75e
timer-uclass: relocate ops pointers for CONFIG_NEEDS_MANUAL_RELOC

Relocate timer_ops pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled.

The (gd->flags & GD_FLG_RELOC) check was added to make sure the reloc_done
logic works for drivers that use DM_FLAG_PRE_RELOC.

Signed-off-by: Ovidiu Panait <ovpanait@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Link: https://lore.kernel.org/r/20221012053656.1492457-2-ovpanait@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
drivers/timer/timer-uclass.c