OMAP: hwmod: Remove IS_ERR check with omap_clk_get_by_name return value
authorBenoit Cousson <b-cousson@ti.com>
Thu, 20 May 2010 18:31:09 +0000 (12:31 -0600)
committerPaul Walmsley <paul@pwsan.com>
Thu, 20 May 2010 18:31:09 +0000 (12:31 -0600)
commit4d3ae5a9a7b3685c6d260a82f4098145862b2cd3
treecf0d2b1cd7c800acaad0e4003ad052c85b365ebc
parent682fdc96f3afb5ec34e4893fae41d09346d656ed
OMAP: hwmod: Remove IS_ERR check with omap_clk_get_by_name return value

The previous clock API was returning a standard linux error code in
case of failure. This is not the case anymore with the new
omap_clk_get_by_name API. A NULL value means that the clock node
does not exist.
Replace all the IS_ERR check by a !clk check.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/omap_hwmod.c