]> git.karo-electronics.de Git - karo-tx-linux.git/commit
regulator: anatop-regulator: Remove unneeded kstrdup()
authorFabio Estevam <fabio.estevam@freescale.com>
Mon, 6 Jan 2014 12:13:15 +0000 (10:13 -0200)
committerMark Brown <broonie@linaro.org>
Mon, 6 Jan 2014 12:20:19 +0000 (12:20 +0000)
commitf2b269b83de35a022a8df5d0133f64021f08592c
treebb76330673dddf54bb0dc1195bca876c80e51dfa
parent89705b9e35026ad75a8ba940d641aa2be7a16611
regulator: anatop-regulator: Remove unneeded kstrdup()

We can simply pass the regulator name via of_get_property() instead of making
a copy via kstrdup().

This leads to some code simplification.

Suggested-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
drivers/regulator/anatop-regulator.c