]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - include/dm/uclass-internal.h
dm: drop CONFIG_DM_DEVICE_REMOVE from uncmd list
[karo-tx-uboot.git] / include / dm / uclass-internal.h
index 9b68508667123e0261691a1d4dbbf4ec7c91dffd..b51e1da5c14a02d9e07ec7b4335632f4480a6be6 100644 (file)
@@ -116,7 +116,7 @@ int uclass_bind_device(struct udevice *dev);
  * @dev:       Pointer to the device
  * #return 0 on success, -ve on error
  */
-#ifdef CONFIG_DM_DEVICE_REMOVE
+#if CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)
 int uclass_unbind_device(struct udevice *dev);
 #else
 static inline int uclass_unbind_device(struct udevice *dev) { return 0; }
@@ -153,7 +153,7 @@ int uclass_post_probe_device(struct udevice *dev);
  * @dev:       Pointer to the device
  * #return 0 on success, -ve on error
  */
-#ifdef CONFIG_DM_DEVICE_REMOVE
+#if CONFIG_IS_ENABLED(DM_DEVICE_REMOVE)
 int uclass_pre_remove_device(struct udevice *dev);
 #else
 static inline int uclass_pre_remove_device(struct udevice *dev) { return 0; }