]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
commitbfaa25f33425db16a942b7c71e396a47581c646d
treeaf1ef3a7d93e5bfe8e85bee12eeb6318e5ece7b2
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
regmap: clean up debugfs if regmap_init fails

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>
drivers/base/regmap/regmap.c