From: Geert Uytterhoeven Date: Wed, 18 Feb 2015 11:39:46 +0000 (+0100) Subject: iio: common: ssp_sensors: Protect PM-only functions to kill warning X-Git-Tag: omap-for-v4.1/wl12xx-dt~47^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b841118ee6c0917004e7e763c4f6bf8eb10a6d93;p=pandora-kernel.git iio: common: ssp_sensors: Protect PM-only functions to kill warning If CONFIG_PM_SLEEP=n: drivers/iio/common/ssp_sensors/ssp_dev.c:644: warning: ‘ssp_suspend’ defined but not used drivers/iio/common/ssp_sensors/ssp_dev.c:669: warning: ‘ssp_resume’ defined but not used Protect the unused functions by #ifdef CONFIG_PM_SLEEP to fix this. Signed-off-by: Geert Uytterhoeven Acked-by: Karol Wrona Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed