Re: [PATCH 2/4] clk: Implement clk_set_rate

From: Mike Frysinger
Date: Mon May 30 2011 - 01:05:22 EST


On Friday, May 20, 2011 03:27:49 Jeremy Kerr wrote:
> int clk_set_rate(struct clk *clk, unsigned long rate)
> {
> - /* not yet implemented */
> - return -ENOSYS;
> + unsigned long parent_rate, new_rate;
> + int ret;
> +
> + if (!clk->ops->set_rate)
> + return -ENOSYS;

i thought ENOSYS is only for syscalls. shouldnt this be ENODEV or perhaps
EOPNOTSUPP ?
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.