mmc: sdhci-s3c: Use correct condition to check for clock presence
authorTomasz Figa <tomasz.figa@gmail.com>
Sat, 11 Jan 2014 21:39:03 +0000 (22:39 +0100)
committerChris Ball <chris@printf.net>
Mon, 3 Mar 2014 15:23:22 +0000 (10:23 -0500)
commit8f4b78d9bb042aacce43e0213c727da861a128f6
treea5bbebacd0a16499c395128eacfc5074848f5b9b
parent6eb28bdcb27249ca9981fb063d3f2485fd344500
mmc: sdhci-s3c: Use correct condition to check for clock presence

IS_ERR() must be used to make sure that not a valid clock was returned
by clk_get() and company.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Tested-by: Heiko Stuebner <heiko@sntech.de>
Acked-by: Heiko Stuebner <heiko@sntech.de>
Tested-by: Jaehoon Chung <jh80.chung@samsung.com>
Acked-by; Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
drivers/mmc/host/sdhci-s3c.c