OSDN Git Service

regulator: max8997: Remove unnecessary **rdev from struct max8997_data
authorAxel Lin <axel.lin@ingics.com>
Sun, 9 Mar 2014 07:29:31 +0000 (15:29 +0800)
committerMark Brown <broonie@linaro.org>
Mon, 10 Mar 2014 10:11:15 +0000 (10:11 +0000)
commitad78bba42adcbfedf7a3d53ad1247bc079b4a24c
treee7237ac38f85c51c1e5e6a54ae833a514b7cdf9a
parentf0d5c73af6e02ca49a51332360171a3da40dcbf7
regulator: max8997: Remove unnecessary **rdev from struct max8997_data

Now we are using devm_regulator_register(), so we don't need to allocate *rdev[]
array to store return value of devm_regulator_register. Use a *rdev variable is
enough for checking return status.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/max8997.c