mtd: misplaced log.h and dm/devres.h
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 3 Jan 2021 15:10:45 +0000 (16:10 +0100)
committerTom Rini <trini@konsulko.com>
Sun, 17 Jan 2021 00:17:11 +0000 (19:17 -0500)
log.h and dm/devres.h are U-Boot includes. So placing them
behind #ifndef __UBOOT__ does not make any sense.

Fixes: f7ae49fc4f36 ("common: Drop log.h from common header")
Fixes: 61b29b826838 ("dm: core: Require users of devres to include the header")
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/mtd/mtdcore.c

index 1a4dec3..0d1f94c 100644 (file)
@@ -9,8 +9,6 @@
  */
 
 #ifndef __UBOOT__
-#include <log.h>
-#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/ptrace.h>