regmap: mmio: convert some error returns to BUG()
authorStephen Warren <swarren@nvidia.com>
Fri, 6 Apr 2012 21:17:32 +0000 (15:17 -0600)
committerVarun Wadekar <vwadekar@nvidia.com>
Wed, 18 Apr 2012 05:36:44 +0000 (10:36 +0530)
commita00949dc877a5ddfb8ba19e3446c8cd9b7ff4f20
tree684249f5a79b5d719f390c9590ed988bfebbd09d
parentb6cca40202f7215bf9a059beb741638676f91bfc
regmap: mmio: convert some error returns to BUG()

Some of the error conditions detected by regmap_mmio_*() are pure internal
errors, rather than user-/client-triggerable conditions. Convert these to
BUG().

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
(cherry picked from commit 40606dba450830e50420599c52a86cf6ce5c6a14)

Change-Id: Ibf926ca6774e4b3d3dd855d42814065858318628
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-on: http://git-master/r/96505
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
drivers/base/regmap/regmap-mmio.c