usb: ehci-atmel: Remove unnecessary clock calling
[oweals/u-boot.git] / drivers / core / device-remove.c
index 0e56b23fbbf44b059b6e38afd1c8366ee245e764..a7f77b4a21dc33efbdc62b2983de5fb970cd8979 100644 (file)
@@ -112,7 +112,7 @@ int device_unbind(struct udevice *dev)
 
        devres_release_all(dev);
 
-       if (dev->flags & DM_NAME_ALLOCED)
+       if (dev->flags & DM_FLAG_NAME_ALLOCED)
                free((char *)dev->name);
        free(dev);