regulator: s5m8767: Check pdata->buck[2|3|4]_gpiodvs earlier
authorAxel Lin <axel.lin@gmail.com>
Sat, 10 Mar 2012 00:43:02 +0000 (08:43 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 14 Mar 2012 14:10:30 +0000 (14:10 +0000)
commit6c4efe2474d233f439540f1fa364d8a7e48c5cdf
treefe1549582fe80b18bf90cf92bc35ff321d05ee7e
parent18039e0f16d50c8243fe0388a587c25a3b155ece
regulator: s5m8767: Check pdata->buck[2|3|4]_gpiodvs earlier

If we need to ensure only one of the buck[2|3|4]_gpiodvs can be specificed,
check them earlier.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Sangbeom Kim <sbkim73@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/regulator/s5m8767.c