mfd: max77686: Init max77686->dev before using it
authorAxel Lin <axel.lin@ingics.com>
Mon, 24 Dec 2012 16:16:43 +0000 (00:16 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Tue, 22 Jan 2013 02:02:21 +0000 (03:02 +0100)
commit136d982ecae912c815587a1653f235f0ef570da8
treea6b4fbf218beeafe1c147a8a321ed511d36323ff
parent89d9b1c99374997d68910ba49d5b7df80e7f2061
mfd: max77686: Init max77686->dev before using it

Current code uses max77686->dev in the dev_err call before setting it to
&i2c->dev. Fix it.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/max77686.c