From: Viresh Kumar Date: Thu, 4 Sep 2014 12:01:36 +0000 (+0530) Subject: power_supply: Don't iterate over devices to return -EPROBE_DEFER X-Git-Tag: omap-for-v3.19/prcm-cleanup~67^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7195c505c2e8e2dd372f7b1737f2a788e74889fb;p=pandora-kernel.git 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: Viresh Kumar Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed