diff mbox

[6/6] SPI omap2_mcspi.c: Limit debug messages from setup_transfer

Message ID 1268407334.14445.55.camel@quad (mailing list archive)
State Accepted
Headers show

Commit Message

Scott Ellis March 12, 2010, 3:22 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/spi/omap2_mcspi.c b/drivers/spi/omap2_mcspi.c
index adc6fd3..b2dbbc0 100644
--- a/drivers/spi/omap2_mcspi.c
+++ b/drivers/spi/omap2_mcspi.c
@@ -637,11 +637,12 @@  static int omap2_mcspi_setup_transfer(struct spi_device *spi,
 
 	mcspi_write_chconf0(spi, l);
 
+#ifdef VERBOSE
 	dev_dbg(&spi->dev, "setup: speed %d, sample %s edge, clk %s\n",
 			OMAP2_MCSPI_MAX_FREQ / (1 << div),
 			(spi->mode & SPI_CPHA) ? "trailing" : "leading",
 			(spi->mode & SPI_CPOL) ? "inverted" : "normal");
-
+#endif
 	return 0;
 }