spi: fix spidev compilation failure when VERBOSE is defined
authorFlorian Fainelli <ffainelli@freebox.fr>
Mon, 7 Dec 2009 14:28:43 +0000 (14:28 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Wed, 9 Dec 2009 01:48:17 +0000 (18:48 -0700)
commit41df70d9ac2d0d36b23a0ec4866f67e540f366ff
tree58a076d61fde0371d7b04f9fb7db0abf9fe37618
parent04ba24b34ac8ea4885295a7f7f78f719bc8c859b
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>
drivers/spi/spidev.c