regulator: as3711: Use a static of_regulator_match table for of_regulator_match
authorAxel Lin <axel.lin@ingics.com>
Wed, 17 Apr 2013 08:01:22 +0000 (16:01 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Apr 2013 13:41:07 +0000 (14:41 +0100)
commitd6c7d73192052eb90e782c626ecaf328c7e9bc6e
tree9de4e10b460523b3ac71f44e28d12d7a01179110
parent416d67599e744bcaef4a5ac45d263a630351b778
regulator: as3711: Use a static of_regulator_match table for of_regulator_match

The same table can be used for multiple instance of pdev, so we don't need to
allocate memory for of_regulator_match table per pdev.

match->driver_data points to the corresponding entry of as3711_reg_info,
however it is not used in current code, thus this patch does not set
driver_data in the of_regulator_match table.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/as3711-regulator.c