Skip to content

Commit

Permalink
Merge tag 'mfd-fixes-4.3' of git://git.kernel.org/pub/scm/linux/kerne…
Browse files Browse the repository at this point in the history
…l/git/lee/mfd

Pull MFD fixes from Lee Jones:
 "Bug Fixes:

   - Return correct error code i.e. not zero

   - Fix build error when !CONFIG_PM_SLEEP"

* tag 'mfd-fixes-4.3' of git://git.kernel.org/pub/scm/linux/kernel/git/lee/mfd:
  mfd: max77843: Fix max77843_chg_init() return on error
  mfd: intel-lpss: Fix build error when !CONFIG_PM_SLEEP
  • Loading branch information
Linus Torvalds committed Oct 14, 2015
2 parents 5b5f145 + 1b52e50 commit 9e07f98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions drivers/mfd/intel-lpss.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ int intel_lpss_resume(struct device *dev);
.thaw = intel_lpss_resume, \
.poweroff = intel_lpss_suspend, \
.restore = intel_lpss_resume,
#else
#define INTEL_LPSS_SLEEP_PM_OPS
#endif

#define INTEL_LPSS_RUNTIME_PM_OPS \
Expand Down
2 changes: 1 addition & 1 deletion drivers/mfd/max77843.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static int max77843_chg_init(struct max77693_dev *max77843)
if (!max77843->i2c_chg) {
dev_err(&max77843->i2c->dev,
"Cannot allocate I2C device for Charger\n");
return PTR_ERR(max77843->i2c_chg);
return -ENODEV;
}
i2c_set_clientdata(max77843->i2c_chg, max77843);

Expand Down

0 comments on commit 9e07f98

Please sign in to comment.