diff options
author | Jean-Jacques Hiblot <jjhiblot@ti.com> | 2019-07-05 10:33:57 +0300 |
---|---|---|
committer | Marek Vasut <marex@denx.de> | 2019-07-05 15:19:41 +0300 |
commit | 07e33711fec4f1106f36805b5dc830da07c783c5 (patch) | |
tree | c7201a3711207f983079e3e43e1ca09935428359 /drivers/core/uclass.c | |
parent | e445d46651de61fdfecf34cc2cd97d58ca6c5cf3 (diff) | |
download | u-boot-07e33711fec4f1106f36805b5dc830da07c783c5.tar.xz |
dm: Add a No-op uclass
This uclass is intended for devices that do not need any features from the
uclass, including binding children.
This will typically be used by devices that are used to bind child devices
but do not use dm_scan_fdt_dev() to do it. That is for example the case of
several USB wrappers that have 2 child devices (1 for device and 1 for
host) but bind only one at a any given time.
Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/uclass.c')
-rw-r--r-- | drivers/core/uclass.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/core/uclass.c b/drivers/core/uclass.c index fc3157de39..dc9eb62893 100644 --- a/drivers/core/uclass.c +++ b/drivers/core/uclass.c @@ -757,3 +757,8 @@ int uclass_pre_remove_device(struct udevice *dev) return 0; } #endif + +UCLASS_DRIVER(nop) = { + .id = UCLASS_NOP, + .name = "nop", +}; |