Skip to contentSkip to conversation

spi: spi_imx: add device information to debug.

PATCH New Alberto Panizzo 1 participant 1 message Jan 20, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 spi: spi_imx: add device information to debug.

Hi all!
I already sent this patch to the linux-arm-kernel mailing list, but not cc you.
In reference to:
http://thread.gmane.org/gmane.linux.ports.arm.kernel/71119

Patch below:
this patch apply to linus .33-rc4
---------------------------------------------------------------
Not an heavy fix, but good when debugging multiple spi channels.

---
 drivers/spi/spi_imx.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/spi/spi_imx.c +1 -1
index 89c22ef..18bbfa3 100644
@@ -466,7 +466,7 @@ static int spi_imx_setup(struct spi_device *spi)
        struct spi_imx_data *spi_imx = spi_master_get_devdata(spi->master);
        int gpio = spi_imx->chipselect[spi->chip_select];
 
-       pr_debug("%s: mode %d, %u bpw, %d hz\n", __func__,
+       dev_dbg(&spi->dev, "%s: mode %d, %u bpw, %d hz\n", __func__,
                 spi->mode, spi->bits_per_word, spi->max_speed_hz);
 
        if (gpio >= 0)
Signature · 14 lines
1.6.3.3



------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
spi-devel-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/spi-devel-general