Skip to content
Snippets Groups Projects
Commit 7195c505 authored by Viresh Kumar's avatar Viresh Kumar Committed by Sebastian Reichel
Browse files

power_supply: Don't iterate over devices to return -EPROBE_DEFER


This piece of code was added so that we return -EPROBE_DEFER when no devices are
registered. But even if class_for_each_device() returns 0, we are going to
return -EPROBE_DEFER only.

And so this code isn't required at all. Remove it.

Signed-off-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: default avatarSebastian Reichel <sre@kernel.org>
parent 464069ca
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment