diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:52:12 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2010-11-12 18:52:12 +0000 |
commit | 6a833a66ca35fcd826f16f7c2e5db3d26ff0a523 (patch) | |
tree | 77981f46e799c2ecb40e0884c731cb040ccf0878 /target/linux/ar71xx/files | |
parent | 68ef19ebb32b045520a2a0b9df6d7e3f91ce6995 (diff) | |
download | upstream-6a833a66ca35fcd826f16f7c2e5db3d26ff0a523.tar.gz upstream-6a833a66ca35fcd826f16f7c2e5db3d26ff0a523.tar.bz2 upstream-6a833a66ca35fcd826f16f7c2e5db3d26ff0a523.zip |
ar71xx: use pr_* functions in drivers
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@23981 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c | 2 | ||||
-rw-r--r-- | target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c | 12 |
2 files changed, 4 insertions, 10 deletions
diff --git a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c index e8d85afa19..408fa664a9 100644 --- a/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c +++ b/target/linux/ar71xx/files/drivers/net/ag71xx/ag71xx_ar7240.c @@ -795,7 +795,7 @@ static struct ar7240sw *ar7240_probe(struct ag71xx *ag) return NULL; } - printk("%s: Found an AR7240 built-in switch\n", ag->dev->name); + pr_info("%s: Found an AR7240 built-in switch\n", ag->dev->name); /* initialize defaults */ for (i = 0; i < AR7240_MAX_VLANS; i++) diff --git a/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c b/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c index 2b22999915..f7f148aae2 100644 --- a/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c +++ b/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c @@ -95,11 +95,9 @@ static void do_spi_byte(void __iomem *base, unsigned char byte) do_spi_clk(base, byte >> 1); do_spi_clk(base, byte); -#ifdef RB4XX_SPI_DEBUG - printk("spi_byte sent 0x%02x got 0x%02x\n", + pr_debug("spi_byte sent 0x%02x got 0x%02x\n", (unsigned)byte, (unsigned char)__raw_readl(base + SPI_REG_RDS)); -#endif } static inline void do_spi_clk_fast(void __iomem *base, unsigned bit1, @@ -121,11 +119,9 @@ static void do_spi_byte_fast(void __iomem *base, unsigned char byte) do_spi_clk_fast(base, byte >> 3, byte >> 2); do_spi_clk_fast(base, byte >> 1, byte >> 0); -#ifdef RB4XX_SPI_DEBUG - printk("spi_byte_fast sent 0x%02x got 0x%02x\n", + pr_debug("spi_byte_fast sent 0x%02x got 0x%02x\n", (unsigned)byte, (unsigned char) __raw_readl(base + SPI_REG_RDS)); -#endif } static int rb4xx_spi_txrx(void __iomem *base, struct spi_transfer *t) @@ -135,12 +131,10 @@ static int rb4xx_spi_txrx(void __iomem *base, struct spi_transfer *t) unsigned char *rx_ptr = t->rx_buf; unsigned i; -#ifdef RB4XX_SPI_DEBUG - printk("spi_txrx len %u tx %u rx %u\n", + pr_debug("spi_txrx len %u tx %u rx %u\n", t->len, (t->tx_buf ? 1 : 0), (t->rx_buf ? 1 : 0)); -#endif if (t->verify) { rxv_ptr = tx_ptr; |