[alsa-devel] [PATCH] ASoC: samsung: Fix checking return value of clk_get
axel.lin at gmail.com
Wed Sep 14 04:05:55 CEST 2011
2011/9/13 Mark Brown <broonie at opensource.wolfsonmicro.com>:
> On Tue, Sep 13, 2011 at 10:44:22PM +0800, Axel Lin wrote:
>> clk_get() returns a pointer to the struct clk or an ERR_PTR().
> Are you sure that the Samsung clock implementation actually does this?
In arch/arm/Kconfig, all samsung platforms select CLKDEV_LOOKUP.
The implementation of clk_get() in drivers/clk/clkdev.c returns
ERR_PTR() on failure.
More information about the Alsa-devel