diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index be7c8ddf1a..096f0253f7 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -460,7 +460,7 @@ int uclass_get_device_by_ofnode(enum uclass_id id, ofnode node, } #if CONFIG_IS_ENABLED(OF_CONTROL) -int uclass_get_device_by_phandle_id(enum uclass_id id, int phandle_id, +int uclass_get_device_by_phandle_id(enum uclass_id id, uint phandle_id, struct udevice **devp) { struct udevice *dev; diff --git a/include/dm/uclass.h b/include/dm/uclass.h index d54683a106..b935a83b38 100644 --- a/include/dm/uclass.h +++ b/include/dm/uclass.h @@ -223,7 +223,7 @@ int uclass_get_device_by_ofnode(enum uclass_id id, ofnode node, * @return 0 if OK, -ENODEV if there is no device match the phandle, other * -ve on error */ -int uclass_get_device_by_phandle_id(enum uclass_id id, int phandle_id, +int uclass_get_device_by_phandle_id(enum uclass_id id, uint phandle_id, struct udevice **devp); /**