There is a config option which allows the FIQ code in the s3c24xx driver to be disabled but it does not cover the inclusion of the API header or the variables added to the driver data. Add some ifdefs protecting these so that we can improve build coverage. Signed-off-by: Mark Brown <broonie@xxxxxxxxxx> --- drivers/spi/spi-s3c24xx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/spi/spi-s3c24xx.c b/drivers/spi/spi-s3c24xx.c index ef25b5e93900..ad13c6004d40 100644 --- a/drivers/spi/spi-s3c24xx.c +++ b/drivers/spi/spi-s3c24xx.c @@ -21,7 +21,9 @@ #include <linux/spi/s3c24xx-fiq.h> #include <linux/module.h> +#ifdef CONFIG_SPI_S3C24XX_FIQ #include <asm/fiq.h> +#endif #include "spi-s3c24xx-regs.h" @@ -56,10 +58,12 @@ struct s3c24xx_spi { int len; int count; +#ifdef CONFIG_SPI_S3C24XX_FIQ struct fiq_handler fiq_handler; enum spi_fiq_mode fiq_mode; unsigned char fiq_inuse; unsigned char fiq_claimed; +#endif /* data buffers */ const unsigned char *tx; -- 2.30.2