dm: Use uclass_first_device_err() where it is useful