summaryrefslogtreecommitdiff
path: root/target/linux/ar71xx/files/drivers/spi
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-11-12 18:52:12 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-11-12 18:52:12 +0000
commit30ef7d55fcccd8d380b63c58a5438cc8b3b92c78 (patch)
tree7d85a434487e1833082d7ec9ef051a2418c921cb /target/linux/ar71xx/files/drivers/spi
parentfddf3b8dac0f86b51498216e8ced58a74551544b (diff)
downloadmtk-20170518-30ef7d55fcccd8d380b63c58a5438cc8b3b92c78.zip
mtk-20170518-30ef7d55fcccd8d380b63c58a5438cc8b3b92c78.tar.gz
mtk-20170518-30ef7d55fcccd8d380b63c58a5438cc8b3b92c78.tar.bz2
ar71xx: use pr_* functions in drivers
Signed-off-by: Arnaud Lacombe <lacombar@gmail.com> SVN-Revision: 23981
Diffstat (limited to 'target/linux/ar71xx/files/drivers/spi')
-rw-r--r--target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c b/target/linux/ar71xx/files/drivers/spi/rb4xx_spi.c
index 2b22999..f7f148a 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;