]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: cleanup: clk_get() error handling
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:46:59 +0000 (10:46 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 24 Feb 2013 10:46:59 +0000 (10:46 +0000)
commitdf7b332073b22b782ba9c68a6945812749bf97c4
tree84faa506dad928120bd1ff345885ad03d670f893
parenteb03cebd7ca51ca52a9558db06ee13a2f2228a27
ARM: cleanup: clk_get() error handling

Use the correct IS_ERR() to determine if clk_get() returned an error.
Set timer->fclk to be an error value initially, and check everywhere
using IS_ERR().  This keeps the range of valid values for 'struct clk'
consistent.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/plat-omap/dmtimer.c