• Florian Fainelli's avatar
    spi: fix spidev compilation failure when VERBOSE is defined · 41df70d9
    Florian Fainelli authored
    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: default avatarFlorian Fainelli <ffainelli@freebox.fr>
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    41df70d9
spidev.c 17.1 KB