mfd: vexpress: Give the "leds-gpio" device a real parent
authorPawel Moll <pawel.moll@arm.com>
Wed, 3 Apr 2013 12:26:27 +0000 (13:26 +0100)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 9 Apr 2013 10:09:09 +0000 (12:09 +0200)
commitb99877f3f7e1c8b7e6d133b56c8bcea4e2f7be80
tree60ff7e881354150f2a9ed41a14d55fd18edfb22b
parentcaa62d642634e25cf4316b286abac54a70fd5a6a
mfd: vexpress: Give the "leds-gpio" device a real parent

The registration of the "leds-gpio" device was using
"vexpress_sysreg_dev" as a parent before it was actually
set to something different than NULL.

Trivial fix by reordering the code.

Reported-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/vexpress-sysreg.c