Commit f83c3838 authored by Ezequiel Garcia's avatar Ezequiel Garcia Committed by Brian Norris

mtd: Move major number definitions to major.h

This patch moves the char and block major number definitions
to major.h to be with the rest of the major numbers.
While doing this, include major.h in the files that need it.
Signed-off-by: default avatarEzequiel Garcia <ezequiel.garcia@free-electrons.com>
Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
parent 33094c73
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/major.h>
/* Info for the block device */ /* Info for the block device */
struct block2mtd_dev { struct block2mtd_dev {
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/blktrans.h> #include <linux/mtd/blktrans.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/major.h>
struct mtdblk_dev { struct mtdblk_dev {
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/blktrans.h> #include <linux/mtd/blktrans.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/major.h>
static int mtdblock_readsect(struct mtd_blktrans_dev *dev, static int mtdblock_readsect(struct mtd_blktrans_dev *dev,
unsigned long block, char *buf) unsigned long block, char *buf)
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#include <linux/mount.h> #include <linux/mount.h>
#include <linux/blkpg.h> #include <linux/blkpg.h>
#include <linux/magic.h> #include <linux/magic.h>
#include <linux/major.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
#include <linux/mtd/map.h> #include <linux/mtd/map.h>
......
...@@ -37,6 +37,7 @@ ...@@ -37,6 +37,7 @@
#include <linux/backing-dev.h> #include <linux/backing-dev.h>
#include <linux/gfp.h> #include <linux/gfp.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/major.h>
#include <linux/mtd/mtd.h> #include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h> #include <linux/mtd/partitions.h>
......
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
#include <linux/export.h> #include <linux/export.h>
#include <linux/ctype.h> #include <linux/ctype.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/major.h>
/* /*
* compare superblocks to see if they're equivalent * compare superblocks to see if they're equivalent
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
#include <linux/kthread.h> #include <linux/kthread.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/slab.h> #include <linux/slab.h>
#include <linux/major.h>
#include "ubi.h" #include "ubi.h"
/* Maximum length of the 'mtd=' parameter */ /* Maximum length of the 'mtd=' parameter */
......
...@@ -29,9 +29,6 @@ ...@@ -29,9 +29,6 @@
#include <asm/div64.h> #include <asm/div64.h>
#define MTD_CHAR_MAJOR 90
#define MTD_BLOCK_MAJOR 31
#define MTD_ERASE_PENDING 0x01 #define MTD_ERASE_PENDING 0x01
#define MTD_ERASING 0x02 #define MTD_ERASING 0x02
#define MTD_ERASE_SUSPEND 0x04 #define MTD_ERASE_SUSPEND 0x04
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
#define ACSI_MAJOR 28 #define ACSI_MAJOR 28
#define AZTECH_CDROM_MAJOR 29 #define AZTECH_CDROM_MAJOR 29
#define FB_MAJOR 29 /* /dev/fb* framebuffers */ #define FB_MAJOR 29 /* /dev/fb* framebuffers */
#define MTD_BLOCK_MAJOR 31
#define CM206_CDROM_MAJOR 32 #define CM206_CDROM_MAJOR 32
#define IDE2_MAJOR 33 #define IDE2_MAJOR 33
#define IDE3_MAJOR 34 #define IDE3_MAJOR 34
...@@ -105,6 +106,7 @@ ...@@ -105,6 +106,7 @@
#define IDE6_MAJOR 88 #define IDE6_MAJOR 88
#define IDE7_MAJOR 89 #define IDE7_MAJOR 89
#define IDE8_MAJOR 90 #define IDE8_MAJOR 90
#define MTD_CHAR_MAJOR 90
#define IDE9_MAJOR 91 #define IDE9_MAJOR 91
#define DASD_MAJOR 94 #define DASD_MAJOR 94
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment