Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/mtd: Convert remaining uses of pr_warning to pr_warn

To enable eventual removal of pr_warning

This makes pr_warn use consistent for drivers/mtd

Prior to this patch, there were 7 uses of pr_warning and
31 uses of pr_warn in drivers/mtd

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>

authored by

Joe Perches and committed by
Brian Norris
e8348dc5 8c925b26

+12 -8
+8 -4
drivers/mtd/chips/cfi_cmdset_0002.c
··· 323 323 * it should report a size of 8KBytes (0x0020*256). 324 324 */ 325 325 cfi->cfiq->EraseRegionInfo[0] = 0x002003ff; 326 - pr_warning("%s: Bad 38VF640x CFI data; adjusting sector size from 64 to 8KiB\n", mtd->name); 326 + pr_warn("%s: Bad 38VF640x CFI data; adjusting sector size from 64 to 8KiB\n", 327 + mtd->name); 327 328 } 328 329 329 330 static void fixup_s29gl064n_sectors(struct mtd_info *mtd) ··· 334 333 335 334 if ((cfi->cfiq->EraseRegionInfo[0] & 0xffff) == 0x003f) { 336 335 cfi->cfiq->EraseRegionInfo[0] |= 0x0040; 337 - pr_warning("%s: Bad S29GL064N CFI data; adjust from 64 to 128 sectors\n", mtd->name); 336 + pr_warn("%s: Bad S29GL064N CFI data; adjust from 64 to 128 sectors\n", 337 + mtd->name); 338 338 } 339 339 } 340 340 ··· 346 344 347 345 if ((cfi->cfiq->EraseRegionInfo[1] & 0xffff) == 0x007e) { 348 346 cfi->cfiq->EraseRegionInfo[1] &= ~0x0040; 349 - pr_warning("%s: Bad S29GL032N CFI data; adjust from 127 to 63 sectors\n", mtd->name); 347 + pr_warn("%s: Bad S29GL032N CFI data; adjust from 127 to 63 sectors\n", 348 + mtd->name); 350 349 } 351 350 } 352 351 ··· 361 358 * which is not permitted by CFI. 362 359 */ 363 360 cfi->cfiq->EraseRegionInfo[0] = 0x020001ff; 364 - pr_warning("%s: Bad S29NS512P CFI data; adjust to 512 sectors\n", mtd->name); 361 + pr_warn("%s: Bad S29NS512P CFI data; adjust to 512 sectors\n", 362 + mtd->name); 365 363 } 366 364 367 365 /* Used to fix CFI-Tables of chips without Extended Query Tables */
+2 -2
drivers/mtd/nand/cmx270_nand.c
··· 145 145 146 146 ret = gpio_request(GPIO_NAND_CS, "NAND CS"); 147 147 if (ret) { 148 - pr_warning("CM-X270: failed to request NAND CS gpio\n"); 148 + pr_warn("CM-X270: failed to request NAND CS gpio\n"); 149 149 return ret; 150 150 } 151 151 ··· 153 153 154 154 ret = gpio_request(GPIO_NAND_RB, "NAND R/B"); 155 155 if (ret) { 156 - pr_warning("CM-X270: failed to request NAND R/B gpio\n"); 156 + pr_warn("CM-X270: failed to request NAND R/B gpio\n"); 157 157 goto err_gpio_request; 158 158 } 159 159
+2 -2
drivers/mtd/ofpart.c
··· 166 166 if (!part) 167 167 return 0; /* No partitions found */ 168 168 169 - pr_warning("Device tree uses obsolete partition map binding: %s\n", 170 - dp->full_name); 169 + pr_warn("Device tree uses obsolete partition map binding: %s\n", 170 + dp->full_name); 171 171 172 172 nr_parts = plen / sizeof(part[0]); 173 173