mfd: 88pm860x: Avoid to check resource for preg regulator
authorHaojian Zhuang <haojian.zhuang@marvell.com>
Mon, 17 Sep 2012 04:19:07 +0000 (12:19 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Wed, 19 Sep 2012 10:39:13 +0000 (12:39 +0200)
commitff13e9e256d49a478b34da3dc380af41e0b9175f
tree2fbcc51221cd758c1805f9d2778084cc4530c8d0
parente7a7810ae08bfca5cb2cad8a8d55c16f299cc3fe
mfd: 88pm860x: Avoid to check resource for preg regulator

Since PREG regulator is the only one regulator in 88PM8606, and other
regulators are in 88PM8607. Checking resource as identifying regulator
is not a good way. We can use NULL resource to indentify PREG regulator.

Signed-off-by: Haojian Zhuang <haojian.zhuang@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm860x-core.c
drivers/regulator/88pm8607.c