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

mtd: nand: denali: remove "Spectra:" prefix from printk strings

As far as I understood from the Kconfig menu deleted by commit
be7f39c5ecf5 ("Staging: delete spectra driver"), the "Spectra" is
specific to Intel Moorestown Platform.

The Denali NAND controller IP is used for various SoCs such as
Altera SOCFPGA, Socionext UniPhier, etc. The platform specific
strings are not preferred in this driver.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Marek Vasut <marek.vasut@gmail.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>

authored by

Masahiro Yamada and committed by
Boris Brezillon
789ccf17 c9e02584

+5 -6
+5 -6
drivers/mtd/nand/denali.c
··· 402 402 break; 403 403 default: 404 404 dev_warn(denali->dev, 405 - "Spectra: Unknown Hynix NAND (Device ID: 0x%x).\n" 405 + "Unknown Hynix NAND (Device ID: 0x%x).\n" 406 406 "Will use default parameter values instead.\n", 407 407 device_id); 408 408 } ··· 1458 1458 */ 1459 1459 if (request_irq(denali->irq, denali_isr, IRQF_SHARED, 1460 1460 DENALI_NAND_NAME, denali)) { 1461 - pr_err("Spectra: Unable to allocate IRQ\n"); 1461 + dev_err(denali->dev, "Unable to request IRQ\n"); 1462 1462 return -ENODEV; 1463 1463 } 1464 1464 ··· 1495 1495 /* Is 32-bit DMA supported? */ 1496 1496 ret = dma_set_mask(denali->dev, DMA_BIT_MASK(32)); 1497 1497 if (ret) { 1498 - pr_err("Spectra: no usable DMA configuration\n"); 1498 + dev_err(denali->dev, "No usable DMA configuration\n"); 1499 1499 goto failed_req_irq; 1500 1500 } 1501 1501 ··· 1503 1503 mtd->writesize + mtd->oobsize, 1504 1504 DMA_BIDIRECTIONAL); 1505 1505 if (dma_mapping_error(denali->dev, denali->buf.dma_buf)) { 1506 - dev_err(denali->dev, "Spectra: failed to map DMA buffer\n"); 1506 + dev_err(denali->dev, "Failed to map DMA buffer\n"); 1507 1507 ret = -EIO; 1508 1508 goto failed_req_irq; 1509 1509 } ··· 1598 1598 1599 1599 ret = mtd_device_register(mtd, NULL, 0); 1600 1600 if (ret) { 1601 - dev_err(denali->dev, "Spectra: Failed to register MTD: %d\n", 1602 - ret); 1601 + dev_err(denali->dev, "Failed to register MTD: %d\n", ret); 1603 1602 goto failed_req_irq; 1604 1603 } 1605 1604 return 0;