aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEzequiel Garcia <ezequiel.garcia@free-electrons.com>2013-10-13 17:05:23 -0400
committerBrian Norris <computersforpeace@gmail.com>2013-11-07 02:32:59 -0500
commitf83c3838b9146b891d0405d3a83660e8f6aed02f (patch)
treec45fadfc7b70e7b0323087d1c5dbe5e06bc911dc
parent33094c736cd36a6cecadae6bce4daba89dabc326 (diff)
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: Ezequiel Garcia <ezequiel.garcia@free-electrons.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
-rw-r--r--drivers/mtd/devices/block2mtd.c1
-rw-r--r--drivers/mtd/mtdblock.c1
-rw-r--r--drivers/mtd/mtdblock_ro.c1
-rw-r--r--drivers/mtd/mtdchar.c1
-rw-r--r--drivers/mtd/mtdcore.c1
-rw-r--r--drivers/mtd/mtdsuper.c1
-rw-r--r--drivers/mtd/ubi/build.c1
-rw-r--r--include/linux/mtd/mtd.h3
-rw-r--r--include/uapi/linux/major.h2
9 files changed, 9 insertions, 3 deletions
diff --git a/drivers/mtd/devices/block2mtd.c b/drivers/mtd/devices/block2mtd.c
index 5cb4c04726b2..d9fd87a4c8dc 100644
--- a/drivers/mtd/devices/block2mtd.c
+++ b/drivers/mtd/devices/block2mtd.c
@@ -20,6 +20,7 @@
20#include <linux/mutex.h> 20#include <linux/mutex.h>
21#include <linux/mount.h> 21#include <linux/mount.h>
22#include <linux/slab.h> 22#include <linux/slab.h>
23#include <linux/major.h>
23 24
24/* Info for the block device */ 25/* Info for the block device */
25struct block2mtd_dev { 26struct block2mtd_dev {
diff --git a/drivers/mtd/mtdblock.c b/drivers/mtd/mtdblock.c
index 53884cc25916..485ea751c7f9 100644
--- a/drivers/mtd/mtdblock.c
+++ b/drivers/mtd/mtdblock.c
@@ -32,6 +32,7 @@
32#include <linux/mtd/mtd.h> 32#include <linux/mtd/mtd.h>
33#include <linux/mtd/blktrans.h> 33#include <linux/mtd/blktrans.h>
34#include <linux/mutex.h> 34#include <linux/mutex.h>
35#include <linux/major.h>
35 36
36 37
37struct mtdblk_dev { 38struct mtdblk_dev {
diff --git a/drivers/mtd/mtdblock_ro.c b/drivers/mtd/mtdblock_ro.c
index 70d27b4d632b..fb5dc89369de 100644
--- a/drivers/mtd/mtdblock_ro.c
+++ b/drivers/mtd/mtdblock_ro.c
@@ -24,6 +24,7 @@
24#include <linux/mtd/mtd.h> 24#include <linux/mtd/mtd.h>
25#include <linux/mtd/blktrans.h> 25#include <linux/mtd/blktrans.h>
26#include <linux/module.h> 26#include <linux/module.h>
27#include <linux/major.h>
27 28
28static int mtdblock_readsect(struct mtd_blktrans_dev *dev, 29static int mtdblock_readsect(struct mtd_blktrans_dev *dev,
29 unsigned long block, char *buf) 30 unsigned long block, char *buf)
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
index 684bfa39e4ee..9aa0c5e49c1d 100644
--- a/drivers/mtd/mtdchar.c
+++ b/drivers/mtd/mtdchar.c
@@ -32,6 +32,7 @@
32#include <linux/mount.h> 32#include <linux/mount.h>
33#include <linux/blkpg.h> 33#include <linux/blkpg.h>
34#include <linux/magic.h> 34#include <linux/magic.h>
35#include <linux/major.h>
35#include <linux/mtd/mtd.h> 36#include <linux/mtd/mtd.h>
36#include <linux/mtd/partitions.h> 37#include <linux/mtd/partitions.h>
37#include <linux/mtd/map.h> 38#include <linux/mtd/map.h>
diff --git a/drivers/mtd/mtdcore.c b/drivers/mtd/mtdcore.c
index 92311a56939f..7189089d87e3 100644
--- a/drivers/mtd/mtdcore.c
+++ b/drivers/mtd/mtdcore.c
@@ -37,6 +37,7 @@
37#include <linux/backing-dev.h> 37#include <linux/backing-dev.h>
38#include <linux/gfp.h> 38#include <linux/gfp.h>
39#include <linux/slab.h> 39#include <linux/slab.h>
40#include <linux/major.h>
40 41
41#include <linux/mtd/mtd.h> 42#include <linux/mtd/mtd.h>
42#include <linux/mtd/partitions.h> 43#include <linux/mtd/partitions.h>
diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c
index 334da5f583c0..20c02a3b7417 100644
--- a/drivers/mtd/mtdsuper.c
+++ b/drivers/mtd/mtdsuper.c
@@ -17,6 +17,7 @@
17#include <linux/export.h> 17#include <linux/export.h>
18#include <linux/ctype.h> 18#include <linux/ctype.h>
19#include <linux/slab.h> 19#include <linux/slab.h>
20#include <linux/major.h>
20 21
21/* 22/*
22 * compare superblocks to see if they're equivalent 23 * compare superblocks to see if they're equivalent
diff --git a/drivers/mtd/ubi/build.c b/drivers/mtd/ubi/build.c
index 315dcc6ec1f5..e05dc6298c1d 100644
--- a/drivers/mtd/ubi/build.c
+++ b/drivers/mtd/ubi/build.c
@@ -41,6 +41,7 @@
41#include <linux/kthread.h> 41#include <linux/kthread.h>
42#include <linux/kernel.h> 42#include <linux/kernel.h>
43#include <linux/slab.h> 43#include <linux/slab.h>
44#include <linux/major.h>
44#include "ubi.h" 45#include "ubi.h"
45 46
46/* Maximum length of the 'mtd=' parameter */ 47/* Maximum length of the 'mtd=' parameter */
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 88409b813418..8cc0e2fb6894 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -29,9 +29,6 @@
29 29
30#include <asm/div64.h> 30#include <asm/div64.h>
31 31
32#define MTD_CHAR_MAJOR 90
33#define MTD_BLOCK_MAJOR 31
34
35#define MTD_ERASE_PENDING 0x01 32#define MTD_ERASE_PENDING 0x01
36#define MTD_ERASING 0x02 33#define MTD_ERASING 0x02
37#define MTD_ERASE_SUSPEND 0x04 34#define MTD_ERASE_SUSPEND 0x04
diff --git a/include/uapi/linux/major.h b/include/uapi/linux/major.h
index 6a8ca98c9a96..620252e69b44 100644
--- a/include/uapi/linux/major.h
+++ b/include/uapi/linux/major.h
@@ -54,6 +54,7 @@
54#define ACSI_MAJOR 28 54#define ACSI_MAJOR 28
55#define AZTECH_CDROM_MAJOR 29 55#define AZTECH_CDROM_MAJOR 29
56#define FB_MAJOR 29 /* /dev/fb* framebuffers */ 56#define FB_MAJOR 29 /* /dev/fb* framebuffers */
57#define MTD_BLOCK_MAJOR 31
57#define CM206_CDROM_MAJOR 32 58#define CM206_CDROM_MAJOR 32
58#define IDE2_MAJOR 33 59#define IDE2_MAJOR 33
59#define IDE3_MAJOR 34 60#define IDE3_MAJOR 34
@@ -105,6 +106,7 @@
105#define IDE6_MAJOR 88 106#define IDE6_MAJOR 88
106#define IDE7_MAJOR 89 107#define IDE7_MAJOR 89
107#define IDE8_MAJOR 90 108#define IDE8_MAJOR 90
109#define MTD_CHAR_MAJOR 90
108#define IDE9_MAJOR 91 110#define IDE9_MAJOR 91
109 111
110#define DASD_MAJOR 94 112#define DASD_MAJOR 94