diff options
author | Anders Roxell <anders.roxell@linaro.org> | 2018-05-14 12:33:26 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2018-05-17 16:54:12 +0300 |
commit | 4b2f9bd5e39fb47011074c9a26b64b616acc18f0 (patch) | |
tree | cd254d27b7e8bbb9ea92bf3a4f411350023090b0 /drivers/i2c/busses/i2c-stm32f7.c | |
parent | 1ee7cdbfcd986b48487d543c678bf305d0d65c5c (diff) | |
download | linux-4b2f9bd5e39fb47011074c9a26b64b616acc18f0.tar.xz |
i2c: i801: fix unused-function warning
With CONFIG_PM, we get a harmless build warning:
drivers/i2c/busses/i2c-i801.c:1723:12: warning: ‘i801_resume’ defined but not used [-Wunused-function]
static int i801_resume(struct device *dev)
^~~~~~~~~~~
drivers/i2c/busses/i2c-i801.c:1714:12: warning: ‘i801_suspend’ defined but not used [-Wunused-function]
static int i801_suspend(struct device *dev)
^~~~~~~~~~~~
Follow design pattern from other drivers like i2c-brcmstb, i2c-mpc,
i2c-ocores, i2c-pnx, i2c-puv3, i2c-st, i2c-stu300 and i2c-mux-pca954x
and changing the ifdef CONFIG_PM to CONFIG_PM_SLEEP.
Fixes: a9c8088c7988 ("i2c: i801: Don't restore config registers on runtime PM")
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c/busses/i2c-stm32f7.c')
0 files changed, 0 insertions, 0 deletions