From: Andy Shevchenko Date: Wed, 6 May 2020 15:30:22 +0000 (+0300) Subject: spi: dw: Move few headers under #ifdef CONFIG_SPI_DW_MID_DMA X-Git-Tag: v5.10.7~2120^2~60 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7940952644558e680033ae0450978445e53b423;p=platform%2Fkernel%2Flinux-rpi.git spi: dw: Move few headers under #ifdef CONFIG_SPI_DW_MID_DMA There is no user of few headers without CONFIG_SPI_DW_MID_DMA being set. Move them under condition. While at it, remove unused slab.h there. Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20200506153025.21441-5-andriy.shevchenko@linux.intel.com Signed-off-by: Mark Brown --- diff --git a/drivers/spi/spi-dw-mid.c b/drivers/spi/spi-dw-mid.c index 02defb6..64523e6 100644 --- a/drivers/spi/spi-dw-mid.c +++ b/drivers/spi/spi-dw-mid.c @@ -5,15 +5,14 @@ * Copyright (c) 2009, 2014 Intel Corporation. */ -#include -#include -#include #include #include #include "spi-dw.h" #ifdef CONFIG_SPI_DW_MID_DMA +#include +#include #include #include #include