Skip to content

Commit

Permalink
jz4740: clock: Fix error codes returned when no clock is found
Browse files Browse the repository at this point in the history
  • Loading branch information
larsclausen committed Jul 8, 2010
1 parent 3416c25 commit 1ae58e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/jz4740/clock.c
Expand Up @@ -805,7 +805,7 @@ struct clk *clk_get(struct device *dev, const char *name)
if (strcmp(clk->name, name) == 0)
return clk;
}
return ERR_PTR(-ENOENT);
return ERR_PTR(-ENXIO);
}
EXPORT_SYMBOL_GPL(clk_get);

Expand Down

0 comments on commit 1ae58e9

Please sign in to comment.