diff options
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index f488eabaa7b5..3f92731a5b9e 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -508,7 +508,6 @@ static int shrink_ecclayout(const struct nand_ecclayout *from, | |||
508 | return 0; | 508 | return 0; |
509 | } | 509 | } |
510 | 510 | ||
511 | #ifdef CONFIG_MTD_PARTITIONS | ||
512 | static int mtd_blkpg_ioctl(struct mtd_info *mtd, | 511 | static int mtd_blkpg_ioctl(struct mtd_info *mtd, |
513 | struct blkpg_ioctl_arg __user *arg) | 512 | struct blkpg_ioctl_arg __user *arg) |
514 | { | 513 | { |
@@ -544,8 +543,6 @@ static int mtd_blkpg_ioctl(struct mtd_info *mtd, | |||
544 | return -EINVAL; | 543 | return -EINVAL; |
545 | } | 544 | } |
546 | } | 545 | } |
547 | #endif | ||
548 | |||
549 | 546 | ||
550 | static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | 547 | static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) |
551 | { | 548 | { |
@@ -937,7 +934,6 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | |||
937 | break; | 934 | break; |
938 | } | 935 | } |
939 | 936 | ||
940 | #ifdef CONFIG_MTD_PARTITIONS | ||
941 | case BLKPG: | 937 | case BLKPG: |
942 | { | 938 | { |
943 | ret = mtd_blkpg_ioctl(mtd, | 939 | ret = mtd_blkpg_ioctl(mtd, |
@@ -951,7 +947,6 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg) | |||
951 | ret = 0; | 947 | ret = 0; |
952 | break; | 948 | break; |
953 | } | 949 | } |
954 | #endif | ||
955 | 950 | ||
956 | default: | 951 | default: |
957 | ret = -ENOTTY; | 952 | ret = -ENOTTY; |