regulator: move set_machine_constraints after regulator device initialization
authorMike Rapoport <mike@compulab.co.il>
Tue, 25 Nov 2008 12:53:53 +0000 (14:53 +0200)
committerLiam Girdwood <lrg@slimlogic.co.uk>
Thu, 8 Jan 2009 20:10:31 +0000 (20:10 +0000)
commit74f544c1fc0339acf6f66ff438b8543b1f9faf10
tree6e4a4739e78acde8534c23848970e694dc0b73a8
parent961869048b61c853a17f35b98be91c5630a73906
regulator: move set_machine_constraints after regulator device initialization

Calling set_machine_constraints before regulator device initialization
causes crash when constraints have apply_uV set.

Signed-off-by: Mike Rapoport <mike@compulab.co.il>
Signed-off-by: Liam Girdwood <lrg@slimlogic.co.uk>
drivers/regulator/core.c