can: mcp251x: Make driver more quiet
authorAlexander Shiyan <shc_work@mail.ru>
Wed, 5 Mar 2014 17:31:56 +0000 (21:31 +0400)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 6 Mar 2014 21:20:43 +0000 (22:20 +0100)
This patch moves one diagnostic message used for debugging purposes
to dev_dbg() and removes one useless message.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/mcp251x.c

index cdb9808d12dbc9883250ccceb5ac156be6a4c84d..7cc9705bfa4b7f9eafe4874589be7abccaf03e55 100644 (file)
@@ -601,10 +601,10 @@ static int mcp251x_do_set_bittiming(struct net_device *net)
                          (bt->prop_seg - 1));
        mcp251x_write_bits(spi, CNF3, CNF3_PHSEG2_MASK,
                           (bt->phase_seg2 - 1));
-       dev_info(&spi->dev, "CNF: 0x%02x 0x%02x 0x%02x\n",
-                mcp251x_read_reg(spi, CNF1),
-                mcp251x_read_reg(spi, CNF2),
-                mcp251x_read_reg(spi, CNF3));
+       dev_dbg(&spi->dev, "CNF: 0x%02x 0x%02x 0x%02x\n",
+               mcp251x_read_reg(spi, CNF1),
+               mcp251x_read_reg(spi, CNF2),
+               mcp251x_read_reg(spi, CNF3));
 
        return 0;
 }
@@ -1155,8 +1155,6 @@ static int mcp251x_can_probe(struct spi_device *spi)
 
        devm_can_led_init(net);
 
-       dev_info(&spi->dev, "probed\n");
-
        return ret;
 
 error_probe: