mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
i2c: designware: Fix build error when !CONFIG_PM_SLEEP
Commit ("i2c: designware: Rename platform driver probe and PM
functions") introduced "'dw_i2c_plat_prepare' undeclared here" and
"'dw_i2c_plat_complete' undeclared here" build errors when
CONFIG_PM_SLEEP is not set.
Fix this by renaming NULL defined dw_i2c_prepare and dw_i2c_complete PM
hooks to dw_i2c_plat_prepare and dw_i2c_plat_complete since this was
obviously missing from the commit.
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Jarkko Nikula <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
This commit is contained in:
parent
8c5ec4c7ec
commit
319d7f05df
1 changed files with 2 additions and 2 deletions
|
|
@ -287,8 +287,8 @@ static void dw_i2c_plat_complete(struct device *dev)
|
|||
pm_request_resume(dev);
|
||||
}
|
||||
#else
|
||||
#define dw_i2c_prepare NULL
|
||||
#define dw_i2c_complete NULL
|
||||
#define dw_i2c_plat_prepare NULL
|
||||
#define dw_i2c_plat_complete NULL
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_PM
|
||||
|
|
|
|||
Loading…
Reference in a new issue