]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: doc: Correct of-platdata driver name
authorSimon Glass <sjg@chromium.org>
Mon, 21 Oct 2019 03:31:48 +0000 (21:31 -0600)
committerBin Meng <bmeng.cn@gmail.com>
Sat, 2 Nov 2019 23:20:26 +0000 (07:20 +0800)
Add a note about the driver name in the of-platdata documentation since
the naming must follow the compatible string.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
doc/driver-model/of-plat.rst

index a38e58e4d294ad0d3f275c5557408d2dcdb39bff..557957d2a166903110ca32c36b7b80d1cb112773 100644 (file)
@@ -269,7 +269,7 @@ For example:
     };
 
     U_BOOT_DRIVER(mmc_drv) = {
-            .name           = "mmc",
+            .name           = "vendor_mmc",  /* matches compatible string */
             .id             = UCLASS_MMC,
             .of_match       = mmc_ids,
             .ofdata_to_platdata = mmc_ofdata_to_platdata,