From: Axel Lin Date: Mon, 24 Dec 2012 16:28:36 +0000 (+0800) Subject: mfd: max77693: Init max77693->dev before using it X-Git-Tag: v3.8-rc6~19^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2429d863868edb611f033c9ce4db519fbc270240;p=pandora-kernel.git mfd: max77693: Init max77693->dev before using it Current code uses max77693->dev in the dev_err call before setting it to &i2c->dev. Fix it. This patch also includes below cleanups: - Move checking pdata earlier and show dev_err if no platform data found. - Remove unnecessary err_regmap goto label. - Unregister i2c devices if regmap init for muic fails. Signed-off-by: Axel Lin Signed-off-by: Samuel Ortiz --- Reading git-diff-tree failed