diff options
author | Axel Lin <[email protected]> | 2012-12-25 00:28:36 +0800 |
---|---|---|
committer | Samuel Ortiz <[email protected]> | 2013-01-22 03:02:22 +0100 |
commit | 2429d863868edb611f033c9ce4db519fbc270240 (patch) | |
tree | 943dc4db17e091a2fcba3f291307d9214610837d /lib/debugobjects.c | |
parent | 136d982ecae912c815587a1653f235f0ef570da8 (diff) |
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 <[email protected]>
Signed-off-by: Samuel Ortiz <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions