From d4d667c0d0b14b9774d3d4af5d55889dcc8091fc Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Wed, 16 Mar 2016 15:26:11 +0100 Subject: mtd: nand-imx: remove/replace debug print The relevant informations which command is sent for which page is already contained in the informations imx_nand_command() prints, so remove the debug prints in send_cmd and send_addr (which only exist for v1/v2 controllers, not for v3). Also use dev_dbg to print debug informations instead of MTD_DEBUG. Signed-off-by: Sascha Hauer --- drivers/mtd/nand/nand_imx.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'drivers/mtd/nand/nand_imx.c') diff --git a/drivers/mtd/nand/nand_imx.c b/drivers/mtd/nand/nand_imx.c index 77c0ad8a8b..590d7fe82a 100644 --- a/drivers/mtd/nand/nand_imx.c +++ b/drivers/mtd/nand/nand_imx.c @@ -261,8 +261,6 @@ static void send_cmd_v3(struct imx_nand_host *host, uint16_t cmd) static void send_cmd_v1_v2(struct imx_nand_host *host, u16 cmd) { - MTD_DEBUG(MTD_DEBUG_LEVEL3, "send_cmd(host, 0x%x)\n", cmd); - writew(cmd, host->regs + NFC_V1_V2_FLASH_CMD); writew(NFC_CMD, host->regs + NFC_V1_V2_CONFIG2); @@ -301,8 +299,6 @@ static void send_addr_v3(struct imx_nand_host *host, uint16_t addr) static void send_addr_v1_v2(struct imx_nand_host *host, u16 addr) { - MTD_DEBUG(MTD_DEBUG_LEVEL3, "send_addr(host, 0x%x %d)\n", addr, islast); - writew(addr, host->regs + NFC_V1_V2_FLASH_ADDR); writew(NFC_ADDR, host->regs + NFC_V1_V2_CONFIG2); @@ -891,7 +887,7 @@ static void imx_nand_command(struct mtd_info *mtd, unsigned command, struct nand_chip *nand_chip = mtd->priv; struct imx_nand_host *host = nand_chip->priv; - MTD_DEBUG(MTD_DEBUG_LEVEL3, + dev_dbg(host->dev, "imx_nand_command (cmd = 0x%x, col = 0x%x, page = 0x%x)\n", command, column, page_addr); -- cgit v1.2.3