Skip to content

Commit

Permalink
powerpc/512x: fix clk_get() return value
Browse files Browse the repository at this point in the history
clk_get() should return an ERR_PTR value on error, not NULL.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
  • Loading branch information
Akinobu Mita authored and Grant Likely committed Sep 1, 2010
1 parent 2bfc96a commit 59482fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/512x/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static struct clk *mpc5121_clk_get(struct device *dev, const char *id)
int id_match = 0;

if (dev == NULL || id == NULL)
return NULL;
return clk;

mutex_lock(&clocks_mutex);
list_for_each_entry(p, &clocks, node) {
Expand Down

0 comments on commit 59482fe

Please sign in to comment.