ASoC: Set up debugfs only once per CODEC
commit13cb61f8c261ca6a218f83f4ee9c3bd5cfc223a5
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Thu, 12 Aug 2010 14:44:04 +0000 (12 15:44 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 15 Aug 2010 13:50:16 +0000 (15 14:50 +0100)
tree50372278ce3f2cde8dabe7f58f4eda028b98e5c0
parent381ac990db3f4fdfbe91e3a636cab03edf293b9c
ASoC: Set up debugfs only once per CODEC

Since the debugfs directory is current per CODEC we should only init
it when the CODEC is initialised, otherwise we end up with errors
being generated when an attempt is made to add duplicate debugfs
entries.

Since most of this stuff is actually for the card we should refactor
but this can come later.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
sound/soc/soc-core.c