diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2010-02-23 23:38:17 -0800 |
---|---|---|
committer | Liam Girdwood <lrg@slimlogic.co.uk> | 2010-03-03 14:49:28 +0000 |
commit | ebbed04fe7f89c9cb00df32f7123bc1b84b456cb (patch) | |
tree | f0f672bee06bf5512ebce4b61363feff1658fd47 /drivers/regulator/max1586.c | |
parent | 56c23492b2266fcbe38f26a3de217902c70a895b (diff) | |
download | op-kernel-dev-ebbed04fe7f89c9cb00df32f7123bc1b84b456cb.zip op-kernel-dev-ebbed04fe7f89c9cb00df32f7123bc1b84b456cb.tar.gz |
Regulators: lp3971 - fail if platform data was not supplied
There is no point in completing probe if platform data is missing so
let's abort loading early.
Also, use kcalloc when allocating several instances of the same data
structure and mark setup_regulators() as __devinit since it is only
called from lp3971_i2c_probe() which is __devinit.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'drivers/regulator/max1586.c')
0 files changed, 0 insertions, 0 deletions