diff options
author | Fabio Estevam <fabio.estevam@freescale.com> | 2014-01-06 10:13:15 -0200 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-01-06 12:20:19 +0000 |
commit | f2b269b83de35a022a8df5d0133f64021f08592c (patch) | |
tree | bb76330673dddf54bb0dc1195bca876c80e51dfa /drivers/misc/c2port | |
parent | 89705b9e35026ad75a8ba940d641aa2be7a16611 (diff) | |
download | op-kernel-dev-f2b269b83de35a022a8df5d0133f64021f08592c.zip op-kernel-dev-f2b269b83de35a022a8df5d0133f64021f08592c.tar.gz |
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>
Diffstat (limited to 'drivers/misc/c2port')
0 files changed, 0 insertions, 0 deletions