diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-16 21:20:08 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-18 20:32:21 -0700 |
commit | d03adb4a78d18b5506350b3ac72ab2f18f1ed160 (patch) | |
tree | e5d27de4a64912a3152d490d33638d60b07d7a36 /drivers/core/device.c | |
parent | 8b85dfc675f12de8d04126c07f3c796965b990c2 (diff) | |
download | u-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.zip u-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.tar.gz u-boot-d03adb4a78d18b5506350b3ac72ab2f18f1ed160.tar.bz2 |
dm: core: Update uclass_find_next_free_req_seq() args
At present this is passed a uclass ID and it has to do a lookup. The
callers all have the uclass pointer, except for the I2C uclass where the
code will soon be deleted.
Update the argument to a uclass * instead of an ID since it is more
efficient.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/device.c')
-rw-r--r-- | drivers/core/device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/core/device.c b/drivers/core/device.c index fce9909..22d8069 100644 --- a/drivers/core/device.c +++ b/drivers/core/device.c @@ -89,10 +89,10 @@ static int device_bind_common(struct udevice *parent, const struct driver *drv, #if CONFIG_IS_ENABLED(OF_PRIOR_STAGE) if (dev->req_seq == -1) dev->req_seq = - uclass_find_next_free_req_seq(drv->id); + uclass_find_next_free_req_seq(uc); #endif } else { - dev->req_seq = uclass_find_next_free_req_seq(drv->id); + dev->req_seq = uclass_find_next_free_req_seq(uc); } } |