summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Glass <[email protected]>2021-01-24 14:32:43 -0700
committerSimon Glass <[email protected]>2021-02-03 03:38:41 -0700
commit4d7bab1adb1a8e3d5b30c5d19f1873dacc95bb93 (patch)
treee35ea1d8851f3e71eb6a70b603582089bd5b8809
parenta547fcb82880f89d9fdac218308b66e28d3e1481 (diff)
dm: pci: Correct use of wrong flag name
Update a driver that uses the incorrect flag. Add a comment to hopefully prevent furture mistakes. Signed-off-by: Simon Glass <[email protected]>
-rw-r--r--drivers/pci/pcie_iproc.c2
-rw-r--r--include/dm/device.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/drivers/pci/pcie_iproc.c b/drivers/pci/pcie_iproc.c
index 6725ff64372..12ce9d525ca 100644
--- a/drivers/pci/pcie_iproc.c
+++ b/drivers/pci/pcie_iproc.c
@@ -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,
};
diff --git a/include/dm/device.h b/include/dm/device.h
index 8f38cf16331..204441fd234 100644
--- a/include/dm/device.h
+++ b/include/dm/device.h
@@ -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 */