aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorFlorian Fainelli <ffainelli@freebox.fr>2009-12-07 09:28:43 -0500
committerGrant Likely <grant.likely@secretlab.ca>2009-12-08 20:48:17 -0500
commit41df70d9ac2d0d36b23a0ec4866f67e540f366ff (patch)
tree58a076d61fde0371d7b04f9fb7db0abf9fe37618 /drivers
parent04ba24b34ac8ea4885295a7f7f78f719bc8c859b (diff)
spi: fix spidev compilation failure when VERBOSE is defined
When VERBOSE is defined in the spidev module, the compilation will throw an error on 'spi' not being defined: CC [M] drivers/spi/spidev.o drivers/spi/spidev.c: In function 'spidev_message': drivers/spi/spidev.c:266: error: 'spi' undeclared (first use in this function) drivers/spi/spidev.c:266: error: (Each undeclared identifier is reported only once drivers/spi/spidev.c:266: error: for each function it appears in.) instead of using spi-> we should actually use spidev->spi. This patch fixes the build failure. Signed-off-by: Florian Fainelli <ffainelli@freebox.fr> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/spi/spidev.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c
index 5d23983f02fc..f8279e783617 100644
--- a/drivers/spi/spidev.c
+++ b/drivers/spi/spidev.c
@@ -267,15 +267,15 @@ static int spidev_message(struct spidev_data *spidev,
267 k_tmp->delay_usecs = u_tmp->delay_usecs; 267 k_tmp->delay_usecs = u_tmp->delay_usecs;
268 k_tmp->speed_hz = u_tmp->speed_hz; 268 k_tmp->speed_hz = u_tmp->speed_hz;
269#ifdef VERBOSE 269#ifdef VERBOSE
270 dev_dbg(&spi->dev, 270 dev_dbg(&spidev->spi->dev,
271 " xfer len %zd %s%s%s%dbits %u usec %uHz\n", 271 " xfer len %zd %s%s%s%dbits %u usec %uHz\n",
272 u_tmp->len, 272 u_tmp->len,
273 u_tmp->rx_buf ? "rx " : "", 273 u_tmp->rx_buf ? "rx " : "",
274 u_tmp->tx_buf ? "tx " : "", 274 u_tmp->tx_buf ? "tx " : "",
275 u_tmp->cs_change ? "cs " : "", 275 u_tmp->cs_change ? "cs " : "",
276 u_tmp->bits_per_word ? : spi->bits_per_word, 276 u_tmp->bits_per_word ? : spidev->spi->bits_per_word,
277 u_tmp->delay_usecs, 277 u_tmp->delay_usecs,
278 u_tmp->speed_hz ? : spi->max_speed_hz); 278 u_tmp->speed_hz ? : spidev->spi->max_speed_hz);
279#endif 279#endif
280 spi_message_add_tail(k_tmp, &msg); 280 spi_message_add_tail(k_tmp, &msg);
281 } 281 }