mfd: 88pm800: Fix NULL pointer dereference
authorYi Zhang <yizhang@marvell.com>
Fri, 14 Jun 2013 05:21:45 +0000 (01:21 -0400)
committerSamuel Ortiz <sameo@linux.intel.com>
Mon, 17 Jun 2013 23:05:52 +0000 (01:05 +0200)
commit618fa57512c724d1d1a446162ad853249f8ac717
tree7568b24b34cd808c41f753f597838f883df2e564
parentdc7d48635dd3c3fd5360238f7d2c697ff13abe7b
mfd: 88pm800: Fix NULL pointer dereference

Move "device_800_init" to fix NULL pointer error when
calling "device_gpadc_init" as it needs "subchip->regmap_gpadc"
to set registers via regmap interface

Signed-off-by: Yi Zhang <yizhang@marvell.com>
Signed-off-by: Chao Xie <chao.xie@marvell.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/88pm800.c