diff options
author | Daniel Baluta <daniel.baluta@intel.com> | 2014-03-09 16:13:00 +0000 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-09-14 18:33:23 +0100 |
commit | c9bf2373da2144dec511503cebf5f8a63b0dcff3 (patch) | |
tree | f190968a1b5125e46b85ec5f7a8febbfe35f7f26 /drivers/iio/accel | |
parent | 48edc3748142ad393c6ee2bfcc1eb256e9f88b38 (diff) | |
download | blackbird-op-linux-c9bf2373da2144dec511503cebf5f8a63b0dcff3.tar.gz blackbird-op-linux-c9bf2373da2144dec511503cebf5f8a63b0dcff3.zip |
iio: accel: kxcjk-1013: Fix defined but unused warning
Noticed when compiling with CONFIG_PM_RUNTIME not set:
kxcjk-1013.c: warning: ‘kxcjk1013_get_startup_times’ defined but not used [-Wunused-function]
Introduced by commit 124e1b1d (iio: accel: kxcjk-1013: support runtime pm).
Signed-off-by: Daniel Baluta <daniel.baluta@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r-- | drivers/iio/accel/kxcjk-1013.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/accel/kxcjk-1013.c b/drivers/iio/accel/kxcjk-1013.c index 615fce236d59..98909a9e284e 100644 --- a/drivers/iio/accel/kxcjk-1013.c +++ b/drivers/iio/accel/kxcjk-1013.c @@ -358,6 +358,7 @@ static int kxcjk1013_chip_init(struct kxcjk1013_data *data) return 0; } +#ifdef CONFIG_PM_RUNTIME static int kxcjk1013_get_startup_times(struct kxcjk1013_data *data) { int i; @@ -370,6 +371,7 @@ static int kxcjk1013_get_startup_times(struct kxcjk1013_data *data) return KXCJK1013_MAX_STARTUP_TIME_US; } +#endif static int kxcjk1013_set_power_state(struct kxcjk1013_data *data, bool on) { |