]> bbs.cooldavid.org Git - net-next-2.6.git/commit
regulator: max8998 - fix memory allocation size for max8998->rdev
authorAxel Lin <axel.lin@gmail.com>
Thu, 19 Aug 2010 02:29:19 +0000 (10:29 +0800)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Wed, 1 Sep 2010 11:59:34 +0000 (12:59 +0100)
commit11fa0d1d20c7cc432c77369bc8bbfbc21030e457
treefeb81ad0bdf19f5c6b6267bf29d1b9fa558ea974
parent7112b2dfea4966c58d21b7197c3f099041248e59
regulator: max8998 - fix memory allocation size for max8998->rdev

We only use max8998->rdev[0] .. max8998->rdev[pdata->num_regulators-1],
max8998->rdev[pdata->num_regulators] is not used.
Thus fix the memory allocation size.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/max8998.c