diff options
Diffstat (limited to 'drivers/base/regmap/regcache.c')
-rw-r--r-- | drivers/base/regmap/regcache.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/drivers/base/regmap/regcache.c b/drivers/base/regmap/regcache.c index e21eebd36afa..1ca2d7a1051f 100644 --- a/drivers/base/regmap/regcache.c +++ b/drivers/base/regmap/regcache.c | |||
@@ -19,7 +19,6 @@ | |||
19 | #include "internal.h" | 19 | #include "internal.h" |
20 | 20 | ||
21 | static const struct regcache_ops *cache_types[] = { | 21 | static const struct regcache_ops *cache_types[] = { |
22 | ®cache_indexed_ops, | ||
23 | ®cache_rbtree_ops, | 22 | ®cache_rbtree_ops, |
24 | ®cache_lzo_ops, | 23 | ®cache_lzo_ops, |
25 | }; | 24 | }; |
@@ -420,22 +419,3 @@ int regcache_lookup_reg(struct regmap *map, unsigned int reg) | |||
420 | else | 419 | else |
421 | return -ENOENT; | 420 | return -ENOENT; |
422 | } | 421 | } |
423 | |||
424 | int regcache_insert_reg(struct regmap *map, unsigned int reg, | ||
425 | unsigned int val) | ||
426 | { | ||
427 | void *tmp; | ||
428 | |||
429 | tmp = krealloc(map->reg_defaults, | ||
430 | (map->num_reg_defaults + 1) * sizeof(struct reg_default), | ||
431 | GFP_KERNEL); | ||
432 | if (!tmp) | ||
433 | return -ENOMEM; | ||
434 | map->reg_defaults = tmp; | ||
435 | map->num_reg_defaults++; | ||
436 | map->reg_defaults[map->num_reg_defaults - 1].reg = reg; | ||
437 | map->reg_defaults[map->num_reg_defaults - 1].def = val; | ||
438 | sort(map->reg_defaults, map->num_reg_defaults, | ||
439 | sizeof(struct reg_default), regcache_default_cmp, NULL); | ||
440 | return 0; | ||
441 | } | ||