]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74425ca5bee6fa6986c80077fc24a62e3cb0d852
tree0ac3212b916871cb979e4bf4d454d95988b96b4b
parent5363554b7781ea8843ea66852801e8d3d4c28834
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