]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: fsl-mc: explicitly include files where they are needed
authorStuart Yoder <stuart.yoder@nxp.com>
Tue, 23 Aug 2016 22:14:18 +0000 (17:14 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 1 Sep 2016 15:57:26 +0000 (17:57 +0200)
Instead of relying on mc-sys.h to include misc system headers, have
the source files that need them explicitly do it themselves.

Signed-off-by: Stuart Yoder <stuart.yoder@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-bus.c
drivers/staging/fsl-mc/bus/mc-io.c
drivers/staging/fsl-mc/bus/mc-sys.c
drivers/staging/fsl-mc/include/mc-sys.h

index fda6a98ba3c5a4694b9f7956d05c3f111948e0c2..9023df390957c525825c2f34c67b5bdf943e826e 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/limits.h>
 #include <linux/bitops.h>
 #include <linux/msi.h>
+#include <linux/dma-mapping.h>
 #include "../include/dpmng.h"
 #include "../include/mc-sys.h"
 #include "fsl-mc-private.h"
index c5edfc8db5274f1796a512ba534ded527a994dfe..fd032c15f9cc5e3cab50ae3d6df3fcdf10ca26cd 100644 (file)
@@ -32,6 +32,8 @@
 
 #include "../include/mc-bus.h"
 #include "../include/mc-sys.h"
+#include <linux/io.h>
+
 #include "fsl-mc-private.h"
 #include "dpmcp.h"
 #include "dpmcp-cmd.h"
index 23e82e4a7814e6c024d950cb38ef40811dc89dc1..461abaa0c6e17a2d5c6a21a6dffbc7d22109b0a4 100644 (file)
@@ -39,6 +39,8 @@
 #include <linux/slab.h>
 #include <linux/ioport.h>
 #include <linux/device.h>
+#include <linux/io.h>
+
 #include "dpmcp.h"
 
 /**
index 7a73cf6452f1515ef4312b71c1029ddd04ea654d..89ad0cf54702099e921cfc579f14af9bcd5c9818 100644 (file)
@@ -37,8 +37,6 @@
 
 #include <linux/types.h>
 #include <linux/errno.h>
-#include <linux/io.h>
-#include <linux/dma-mapping.h>
 #include <linux/mutex.h>
 #include <linux/spinlock.h>