diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-11-07 12:11:16 -0500 |
commit | e0d65113a70f1dc514e625cc4e7a7485a4bf72df (patch) | |
tree | 7320a130dc304623f5cf4b5dd8f67fb1776225ca /drivers/mtd/mtdsuper.c | |
parent | cf5e15fbd72c13977720aa15b7b7e00e1d8fd8f2 (diff) | |
parent | 48e546b7f281f251893baa40769581fd15f085fb (diff) |
Merge git://git.infradead.org/mtd-2.6
* git://git.infradead.org/mtd-2.6: (226 commits)
mtd: tests: annotate as DANGEROUS in Kconfig
mtd: tests: don't use mtd0 as a default
mtd: clean up usage of MTD_DOCPROBE_ADDRESS
jffs2: add compr=lzo and compr=zlib options
jffs2: implement mount option parsing and compression overriding
mtd: nand: initialize ops.mode
mtd: provide an alias for the redboot module name
mtd: m25p80: don't probe device which has status of 'disabled'
mtd: nand_h1900 never worked
mtd: Add DiskOnChip G3 support
mtd: m25p80: add EON flash EN25Q32B into spi flash id table
mtd: mark block device queue as non-rotational
mtd: r852: make r852_pm_ops static
mtd: m25p80: add support for at25df321a spi data flash
mtd: mxc_nand: preset_v1_v2: unlock all NAND flash blocks
mtd: nand: switch `check_pattern()' to standard `memcmp()'
mtd: nand: invalidate cache on unaligned reads
mtd: nand: do not scan bad blocks with NAND_BBT_NO_OOB set
mtd: nand: wait to set BBT version
mtd: nand: scrub BBT on ECC errors
...
Fix up trivial conflicts:
- arch/arm/mach-at91/board-usb-a9260.c
Merged into board-usb-a926x.c
- drivers/mtd/maps/lantiq-flash.c
add_mtd_partitions -> mtd_device_register vs changed to use
mtd_device_parse_register.
Diffstat (limited to 'drivers/mtd/mtdsuper.c')
-rw-r--r-- | drivers/mtd/mtdsuper.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/mtd/mtdsuper.c b/drivers/mtd/mtdsuper.c index 89f8e66448ab..a90bfe79916d 100644 --- a/drivers/mtd/mtdsuper.c +++ b/drivers/mtd/mtdsuper.c | |||
@@ -27,12 +27,12 @@ static int get_sb_mtd_compare(struct super_block *sb, void *_mtd) | |||
27 | struct mtd_info *mtd = _mtd; | 27 | struct mtd_info *mtd = _mtd; |
28 | 28 | ||
29 | if (sb->s_mtd == mtd) { | 29 | if (sb->s_mtd == mtd) { |
30 | DEBUG(2, "MTDSB: Match on device %d (\"%s\")\n", | 30 | pr_debug("MTDSB: Match on device %d (\"%s\")\n", |
31 | mtd->index, mtd->name); | 31 | mtd->index, mtd->name); |
32 | return 1; | 32 | return 1; |
33 | } | 33 | } |
34 | 34 | ||
35 | DEBUG(2, "MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n", | 35 | pr_debug("MTDSB: No match, device %d (\"%s\"), device %d (\"%s\")\n", |
36 | sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); | 36 | sb->s_mtd->index, sb->s_mtd->name, mtd->index, mtd->name); |
37 | return 0; | 37 | return 0; |
38 | } | 38 | } |
@@ -71,7 +71,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags, | |||
71 | goto already_mounted; | 71 | goto already_mounted; |
72 | 72 | ||
73 | /* fresh new superblock */ | 73 | /* fresh new superblock */ |
74 | DEBUG(1, "MTDSB: New superblock for device %d (\"%s\")\n", | 74 | pr_debug("MTDSB: New superblock for device %d (\"%s\")\n", |
75 | mtd->index, mtd->name); | 75 | mtd->index, mtd->name); |
76 | 76 | ||
77 | sb->s_flags = flags; | 77 | sb->s_flags = flags; |
@@ -88,7 +88,7 @@ static struct dentry *mount_mtd_aux(struct file_system_type *fs_type, int flags, | |||
88 | 88 | ||
89 | /* new mountpoint for an already mounted superblock */ | 89 | /* new mountpoint for an already mounted superblock */ |
90 | already_mounted: | 90 | already_mounted: |
91 | DEBUG(1, "MTDSB: Device %d (\"%s\") is already mounted\n", | 91 | pr_debug("MTDSB: Device %d (\"%s\") is already mounted\n", |
92 | mtd->index, mtd->name); | 92 | mtd->index, mtd->name); |
93 | put_mtd_device(mtd); | 93 | put_mtd_device(mtd); |
94 | return dget(sb->s_root); | 94 | return dget(sb->s_root); |
@@ -109,7 +109,7 @@ static struct dentry *mount_mtd_nr(struct file_system_type *fs_type, int flags, | |||
109 | 109 | ||
110 | mtd = get_mtd_device(NULL, mtdnr); | 110 | mtd = get_mtd_device(NULL, mtdnr); |
111 | if (IS_ERR(mtd)) { | 111 | if (IS_ERR(mtd)) { |
112 | DEBUG(0, "MTDSB: Device #%u doesn't appear to exist\n", mtdnr); | 112 | pr_debug("MTDSB: Device #%u doesn't appear to exist\n", mtdnr); |
113 | return ERR_CAST(mtd); | 113 | return ERR_CAST(mtd); |
114 | } | 114 | } |
115 | 115 | ||
@@ -132,7 +132,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
132 | if (!dev_name) | 132 | if (!dev_name) |
133 | return ERR_PTR(-EINVAL); | 133 | return ERR_PTR(-EINVAL); |
134 | 134 | ||
135 | DEBUG(2, "MTDSB: dev_name \"%s\"\n", dev_name); | 135 | pr_debug("MTDSB: dev_name \"%s\"\n", dev_name); |
136 | 136 | ||
137 | /* the preferred way of mounting in future; especially when | 137 | /* the preferred way of mounting in future; especially when |
138 | * CONFIG_BLOCK=n - we specify the underlying MTD device by number or | 138 | * CONFIG_BLOCK=n - we specify the underlying MTD device by number or |
@@ -143,7 +143,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
143 | struct mtd_info *mtd; | 143 | struct mtd_info *mtd; |
144 | 144 | ||
145 | /* mount by MTD device name */ | 145 | /* mount by MTD device name */ |
146 | DEBUG(1, "MTDSB: mtd:%%s, name \"%s\"\n", | 146 | pr_debug("MTDSB: mtd:%%s, name \"%s\"\n", |
147 | dev_name + 4); | 147 | dev_name + 4); |
148 | 148 | ||
149 | mtd = get_mtd_device_nm(dev_name + 4); | 149 | mtd = get_mtd_device_nm(dev_name + 4); |
@@ -164,7 +164,7 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
164 | mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); | 164 | mtdnr = simple_strtoul(dev_name + 3, &endptr, 0); |
165 | if (!*endptr) { | 165 | if (!*endptr) { |
166 | /* It was a valid number */ | 166 | /* It was a valid number */ |
167 | DEBUG(1, "MTDSB: mtd%%d, mtdnr %d\n", | 167 | pr_debug("MTDSB: mtd%%d, mtdnr %d\n", |
168 | mtdnr); | 168 | mtdnr); |
169 | return mount_mtd_nr(fs_type, flags, | 169 | return mount_mtd_nr(fs_type, flags, |
170 | dev_name, data, | 170 | dev_name, data, |
@@ -180,10 +180,10 @@ struct dentry *mount_mtd(struct file_system_type *fs_type, int flags, | |||
180 | bdev = lookup_bdev(dev_name); | 180 | bdev = lookup_bdev(dev_name); |
181 | if (IS_ERR(bdev)) { | 181 | if (IS_ERR(bdev)) { |
182 | ret = PTR_ERR(bdev); | 182 | ret = PTR_ERR(bdev); |
183 | DEBUG(1, "MTDSB: lookup_bdev() returned %d\n", ret); | 183 | pr_debug("MTDSB: lookup_bdev() returned %d\n", ret); |
184 | return ERR_PTR(ret); | 184 | return ERR_PTR(ret); |
185 | } | 185 | } |
186 | DEBUG(1, "MTDSB: lookup_bdev() returned 0\n"); | 186 | pr_debug("MTDSB: lookup_bdev() returned 0\n"); |
187 | 187 | ||
188 | ret = -EINVAL; | 188 | ret = -EINVAL; |
189 | 189 | ||