diff mbox

[4/4] spi: xtensa-xtfpga: remove unnecessary #ifdef CONFIG_OF

Message ID 002d01cfc65d$9fa78d90$def6a8b0$%han@samsung.com (mailing list archive)
State Accepted
Commit 31f54bc5ea02b3cb2cd315f51568e9524b32fac6
Headers show

Commit Message

Jingoo Han Sept. 2, 2014, 3:26 a.m. UTC
Remove unnecessary #ifdef CONFIG_OF, because this is already
handled by the of_match_ptr macro.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/spi/spi-xtensa-xtfpga.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Max Filippov Sept. 2, 2014, 9:46 a.m. UTC | #1
On Tue, Sep 2, 2014 at 7:26 AM, Jingoo Han <jg1.han@samsung.com> wrote:
> Remove unnecessary #ifdef CONFIG_OF, because this is already
> handled by the of_match_ptr macro.
>
> Signed-off-by: Jingoo Han <jg1.han@samsung.com>
> ---
>  drivers/spi/spi-xtensa-xtfpga.c | 2 --
>  1 file changed, 2 deletions(-)

Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Mark Brown Sept. 2, 2014, 10:50 a.m. UTC | #2
On Tue, Sep 02, 2014 at 12:26:02PM +0900, Jingoo Han wrote:
> Remove unnecessary #ifdef CONFIG_OF, because this is already
> handled by the of_match_ptr macro.

Applied, thanks.
diff mbox

Patch

diff --git a/drivers/spi/spi-xtensa-xtfpga.c b/drivers/spi/spi-xtensa-xtfpga.c
index 41e158187f9d..553b5e189273 100644
--- a/drivers/spi/spi-xtensa-xtfpga.c
+++ b/drivers/spi/spi-xtensa-xtfpga.c
@@ -146,13 +146,11 @@  static int xtfpga_spi_remove(struct platform_device *pdev)
 
 MODULE_ALIAS("platform:" XTFPGA_SPI_NAME);
 
-#ifdef CONFIG_OF
 static const struct of_device_id xtfpga_spi_of_match[] = {
 	{ .compatible = "cdns,xtfpga-spi", },
 	{}
 };
 MODULE_DEVICE_TABLE(of, xtfpga_spi_of_match);
-#endif
 
 static struct platform_driver xtfpga_spi_driver = {
 	.probe = xtfpga_spi_probe,