mmc: jz4740: don't treat NULL clk as an error
authorJamie Iles <jamie@jamieiles.com>
Tue, 11 Jan 2011 12:43:50 +0000 (12:43 +0000)
committerChris Ball <cjb@laptop.org>
Wed, 26 Jan 2011 02:53:51 +0000 (21:53 -0500)
commit3119cbda858fc9ae10a69919e5f278abd6d93bb5
tree0ac3212b916871cb979e4bf4d454d95988b96b4b
parent9047b435a0b43952f5d1f7eb15a9b63a36efc7f2
mmc: jz4740: don't treat NULL clk as an error

clk_get() returns a struct clk cookie to the driver and some platforms
may return NULL if they only support a single clock.  clk_get() has only
failed if it returns a ERR_PTR() encoded pointer.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
drivers/mmc/host/jz4740_mmc.c