X-Git-Url: https://git.kernelconcepts.de/?p=karo-tx-uboot.git;a=blobdiff_plain;f=include%2Fdm%2Flists.h;h=23568952467e6d5b685d84e2664561f5ca9ea942;hp=49d87e617687465d289b88e9a002f0ac4ea14223;hb=1f359e3611c55d9cfae88dafce04db1833033bd0;hpb=b5b8d85e9a50c2294b6043830cd045de1002dc5d diff --git a/include/dm/lists.h b/include/dm/lists.h index 49d87e6176..2356895246 100644 --- a/include/dm/lists.h +++ b/include/dm/lists.h @@ -42,7 +42,7 @@ struct uclass_driver *lists_uclass_lookup(enum uclass_id id); * @early_only: If true, bind only drivers with the DM_INIT_F flag. If false * bind all drivers. */ -int lists_bind_drivers(struct udevice *parent); +int lists_bind_drivers(struct udevice *parent, bool pre_reloc_only); /** * lists_bind_fdt() - bind a device tree node @@ -53,7 +53,11 @@ int lists_bind_drivers(struct udevice *parent); * @parent: parent driver (root) * @blob: device tree blob * @offset: offset of this device tree node + * @devp: if non-NULL, returns a pointer to the bound device + * @return 0 if device was bound, -EINVAL if the device tree is invalid, + * other -ve value on error */ -int lists_bind_fdt(struct udevice *parent, const void *blob, int offset); +int lists_bind_fdt(struct udevice *parent, const void *blob, int offset, + struct udevice **devp); #endif