Re: [PATCH] xen: pvblock: Use uclass_probe_all

2022-11-03 Thread Tom Rini
On Sat, Oct 22, 2022 at 04:33:05PM +0200, Michal Suchanek wrote:

> Also eliminate useless code and variables.
> 
> Signed-off-by: Michal Suchanek 
> Reviewed-by: Simon Glass 

Applied to u-boot/master, thanks!

-- 
Tom


signature.asc
Description: PGP signature


Re: [PATCH] xen: pvblock: Use uclass_probe_all

2022-10-25 Thread Simon Glass
On Sat, 22 Oct 2022 at 08:33, Michal Suchanek  wrote:
>
> Also eliminate useless code and variables.
>
> Signed-off-by: Michal Suchanek 
> ---
>
>  drivers/xen/pvblock.c | 9 ++---
>  1 file changed, 2 insertions(+), 7 deletions(-)
>

Reviewed-by: Simon Glass 


[PATCH] xen: pvblock: Use uclass_probe_all

2022-10-22 Thread Michal Suchanek
Also eliminate useless code and variables.

Signed-off-by: Michal Suchanek 
---

 drivers/xen/pvblock.c | 9 ++---
 1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/drivers/xen/pvblock.c b/drivers/xen/pvblock.c
index 95e298d7dd..4ad548d599 100644
--- a/drivers/xen/pvblock.c
+++ b/drivers/xen/pvblock.c
@@ -818,8 +818,6 @@ static void print_pvblock_devices(void)
 void pvblock_init(void)
 {
struct driver_info info;
-   struct udevice *udev;
-   struct uclass *uc;
int ret;
 
/*
@@ -828,15 +826,12 @@ void pvblock_init(void)
 * virtual block devices.
 */
info.name = DRV_NAME;
-   ret = device_bind_by_name(gd->dm_root, false, , );
+   ret = device_bind_by_name(gd->dm_root, false, , NULL);
if (ret < 0)
printf("Failed to bind " DRV_NAME ", ret: %d\n", ret);
 
/* Bootstrap virtual block devices class driver */
-   ret = uclass_get(UCLASS_PVBLOCK, );
-   if (ret)
-   return;
-   uclass_foreach_dev_probe(UCLASS_PVBLOCK, udev);
+   uclass_probe_all(UCLASS_PVBLOCK);
 
print_pvblock_devices();
 }
-- 
2.38.0