]> git.baikalelectronics.ru Git - kernel.git/commit
CLKDEV: Fix clkdev return value for NULL clk case
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 30 Apr 2011 09:14:08 +0000 (10:14 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 30 Apr 2011 09:14:08 +0000 (10:14 +0100)
commit6c4882a1e4c64f9cf8d5e164df5631d9050dc17d
tree13b3749d6b912b84b069d83ca39b53bea5e23ac5
parentdb80287236b2ab00b0fcf84dad29fd7a9e15391f
CLKDEV: Fix clkdev return value for NULL clk case

clkdev may incorrectly cause a clkdev entry with a NULL clk to return
-ENOENT.  This is not the intention of this code; -ENOENT should only
be returned if the clock entry can not be found in the table.  Fix
this.

Reported-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/clk/clkdev.c