regmap: clean up debugfs if regmap_init fails
authorStephen Warren <swarren@nvidia.com>
Wed, 23 May 2012 22:30:53 +0000 (16:30 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 3 Jun 2012 12:13:38 +0000 (13:13 +0100)
If debugfs isn't cleaned up, stale files will be left in the filesystem
which will cause an OOPS when accessed the first time, and hang the
accessing application when accessed again, presumably due to some lock
being left held.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>

No differences found