regulator: check for init_data on registration
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 9 Sep 2008 15:21:18 +0000 (16:21 +0100)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Mon, 13 Oct 2008 20:51:51 +0000 (21:51 +0100)
commit46fabe1edd44a8893d88d7982f88d01ccf77f0bb
tree6c01ae79e6ec7d84b839464015919cca658a5734
parent3de89609a82aa68f543cba263eb28725e0fde511
regulator: check for init_data on registration

Since it is now mandatory to supply constraints via init_data on device
registration check for that when registering, saving us from oopsing
later on.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c