summaryrefslogtreecommitdiffstats
path: root/drivers/cpufreq
diff options
context:
space:
mode:
authorGrant Likely <grant.likely@linaro.org>2014-06-04 17:42:26 +0200
committerGrant Likely <grant.likely@linaro.org>2014-06-26 18:12:24 +0200
commitccdb8ed3b3c739fe99a6f2f474f7ffad3203485d (patch)
treef556b308a0fb81e00a39155596fab68374159cc5 /drivers/cpufreq
parenttty: Update hypervisor tty drivers to use core stdout parsing code. (diff)
downloadlinux-ccdb8ed3b3c739fe99a6f2f474f7ffad3203485d.tar.xz
linux-ccdb8ed3b3c739fe99a6f2f474f7ffad3203485d.zip
of: Migrate of_find_node_by_name() users to for_each_node_by_name()
There are a bunch of users open coding the for_each_node_by_name() by calling of_find_node_by_name() directly instead of using the macro. This is getting in the way of some cleanups, and the possibility of removing of_find_node_by_name() entirely. Clean it up so that all the users are consistent. Signed-off-by: Grant Likely <grant.likely@linaro.org> Cc: Rob Herring <robh+dt@kernel.org> Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org> Cc: "Rafael J. Wysocki" <rjw@rjwysocki.net> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'drivers/cpufreq')
-rw-r--r--drivers/cpufreq/pmac64-cpufreq.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpufreq/pmac64-cpufreq.c b/drivers/cpufreq/pmac64-cpufreq.c
index 8bc422977b5b..4ff86878727f 100644
--- a/drivers/cpufreq/pmac64-cpufreq.c
+++ b/drivers/cpufreq/pmac64-cpufreq.c
@@ -499,8 +499,7 @@ static int __init g5_pm72_cpufreq_init(struct device_node *cpunode)
}
/* Lookup the i2c hwclock */
- for (hwclock = NULL;
- (hwclock = of_find_node_by_name(hwclock, "i2c-hwclock")) != NULL;){
+ for_each_node_by_name(hwclock, "i2c-hwclock") {
const char *loc = of_get_property(hwclock,
"hwctrl-location", NULL);
if (loc == NULL)