Skip to contentSkip to conversation

spi: spi-au1550: pr_err instead of printk

PATCH In review corentin noel 2 participants 2 messages Jan 23, 2021 – Jan 25, 2021 SPI

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spi-au1550: pr_err instead of printk

---
 drivers/spi/spi-au1550.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/spi/spi-au1550.c +1 -2
index dfb7196f4caf..8f92bbdf391b 100644
@@ -972,8 +972,7 @@ static int __init au1550_spi_init(void)
 	if (usedma) {
 		ddma_memid = au1xxx_ddma_add_device(&au1550_spi_mem_dbdev);
 		if (!ddma_memid)
-			printk(KERN_ERR "au1550-spi: cannot add memory"
-					"dbdma device\n");
+			pr_err("au1550-spi: cannot add memory dbdma device\n");
 	}
 	return platform_driver_register(&au1550_spi_drv);
 }
Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 1 line · corentin noel

This doesn't apply against current code, please check and resend. It should apply against my tree which already has your previous patches including the one which

drivers/spi/spi-au1550.c static int __init au1550_spi_init(void) · line 975

Quoted 4 lines
drivers/spi/spi-au1550.c +1 -2
 		if (!ddma_memid)
-			printk(KERN_ERR "au1550-spi: cannot add memory"
-					"dbdma device\n");
+			pr_err("au1550-spi: cannot add memory dbdma device\n");

merged this onto a single line.