Skip to content

Commit

Permalink
mtd: nand: denali: consolidate include directives
Browse files Browse the repository at this point in the history
Include necessary headers explicitly without relying on indirect
header inclusion.  Also, sort them alphabetically.

<linux/delay.h>, <linux/wait.h>, <linux/mutex.h> turned out bogus,
so removed.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
  • Loading branch information
Masahiro Yamada authored and Boris Brezillon committed Sep 22, 2017
1 parent 3ac6c71 commit da4734b
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 6 deletions.
12 changes: 7 additions & 5 deletions drivers/mtd/nand/denali.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,16 @@
* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.
*
*/
#include <linux/interrupt.h>
#include <linux/delay.h>

#include <linux/completion.h>
#include <linux/dma-mapping.h>
#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/mtd/mtd.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/mtd/mtd.h>
#include <linux/mtd/rawnand.h>
#include <linux/slab.h>
#include <linux/spinlock.h>

#include "denali.h"

Expand Down
3 changes: 3 additions & 0 deletions drivers/mtd/nand/denali.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
#define __DENALI_H__

#include <linux/bitops.h>
#include <linux/completion.h>
#include <linux/mtd/rawnand.h>
#include <linux/spinlock_types.h>
#include <linux/types.h>

#define DEVICE_RESET 0x0
#define DEVICE_RESET__BANK(bank) BIT(bank)
Expand Down
3 changes: 2 additions & 1 deletion drivers/mtd/nand/denali_dt.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,16 @@
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/

#include <linux/clk.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>

#include "denali.h"

Expand Down
3 changes: 3 additions & 0 deletions drivers/mtd/nand/denali_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/

#include <linux/errno.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pci.h>
Expand Down

0 comments on commit da4734b

Please sign in to comment.