diff options
author | Rasmus Villemoes <rasmus.villemoes@prevas.dk> | 2021-05-19 19:08:11 +0300 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-07-06 19:38:03 +0300 |
commit | 98c14ff019515ffcb1b40b550e56fe1dfbede51b (patch) | |
tree | 6b6bdcde50aeab5058d6a4f389df8aa49d0ba4e8 /drivers/core/root.c | |
parent | 3c9fc23c44317be82be94e461ff260ec7f083523 (diff) | |
download | u-boot-98c14ff019515ffcb1b40b550e56fe1dfbede51b.tar.xz |
remove struct uclass_driver::ops
Each _device_ belonging to a given uclass of course has its own ->ops,
of a type determined by and known to the uclass.
However, no instance of a uclass_driver seems to populate ->ops, and
the only reference to it in code is this relocation.
Moreover, it's not really clear what could sensibly be assigned; it
would have to be some "struct uclass_ops *" providing a set of methods
for the core to call on that particular uclass, but should the need
for that ever arise, it would be better to have a member of that
particular type instead of void*.
Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/root.c')
-rw-r--r-- | drivers/core/root.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/core/root.c b/drivers/core/root.c index 537e9daaf8..78eee082c9 100644 --- a/drivers/core/root.c +++ b/drivers/core/root.c @@ -113,9 +113,6 @@ void fix_uclass(void) entry->init += gd->reloc_off; if (entry->destroy) entry->destroy += gd->reloc_off; - /* FIXME maybe also need to fix these ops */ - if (entry->ops) - entry->ops += gd->reloc_off; } } |