dm: pci: Correct use of wrong flag name
authorSimon Glass <sjg@chromium.org>
Sun, 24 Jan 2021 21:32:43 +0000 (14:32 -0700)
committerSimon Glass <sjg@chromium.org>
Wed, 3 Feb 2021 10:38:41 +0000 (03:38 -0700)
Update a driver that uses the incorrect flag. Add a comment to hopefully
prevent furture mistakes.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/pci/pcie_iproc.c
include/dm/device.h

index 6725ff6..12ce9d5 100644 (file)
@@ -1283,5 +1283,5 @@ U_BOOT_DRIVER(pci_iproc) = {
        .probe = iproc_pcie_probe,
        .remove = iproc_pcie_remove,
        .priv_auto      = sizeof(struct iproc_pcie),
-       .flags = DM_REMOVE_OS_PREPARE,
+       .flags = DM_FLAG_OS_PREPARE,
 };
index 8f38cf1..204441f 100644 (file)
@@ -77,6 +77,9 @@ struct driver_info;
  * One or multiple of these flags are passed to device_remove() so that
  * a selective device removal as specified by the remove-stage and the
  * driver flags can be done.
+ *
+ * DO NOT use these flags in your driver's @flags value...
+ *     use the above DM_FLAG_... values instead
  */
 enum {
        /* Normal remove, remove all devices */