]> git.karo-electronics.de Git - linux-beck.git/commit
ASoC: rcar: add rsnd_is_accessible_reg()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Fri, 29 Nov 2013 02:43:13 +0000 (18:43 -0800)
committerMark Brown <broonie@linaro.org>
Fri, 29 Nov 2013 12:09:54 +0000 (12:09 +0000)
commit42ee5d22e3d2550a49bc5d3e6f19c92da9a19446
treead389e7a5b773876fbe455c94d8188d57e5b6290
parentc1e6cc5e577d1d446a645aea02d28a924f20b834
ASoC: rcar: add rsnd_is_accessible_reg()

Current rcar driver is supporting Gen1,
and Gen2 will be supported soon.
Then, some registers are used from Gen1 only,
or from Gen2 only.
To avoid NULL pointer access, this patch adds
register accessible check function.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/sh/rcar/gen.c