Changeset 29709


Ignore:
Timestamp:
2012-01-11T10:14:17+01:00 (6 years ago)
Author:
juhosg
Message:

ar71xx: pb44_spi: call pb44_spi_{en,dis}able from probe/remove

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/ar71xx/files/drivers/spi/pb44_spi.c

    r29708 r29709  
    111111        struct ar71xx_spi *sp = spidev_to_sp(spi); 
    112112 
    113         pb44_spi_enable(sp); 
    114  
    115113        if (spi->chip_select) { 
    116114                unsigned long gpio = (unsigned long) spi->controller_data; 
     
    139137static void pb44_spi_cleanup_cs(struct spi_device *spi) 
    140138{ 
    141         struct ar71xx_spi *sp = spidev_to_sp(spi); 
    142  
    143139        if (spi->chip_select) { 
    144140                unsigned long gpio = (unsigned long) spi->controller_data; 
    145141                gpio_free(gpio); 
    146142        } 
    147  
    148         pb44_spi_disable(sp); 
    149143} 
    150144 
     
    257251        } 
    258252 
     253        pb44_spi_enable(sp); 
     254 
    259255        ret = spi_bitbang_start(&sp->bitbang); 
    260256        if (!ret) 
    261257                return 0; 
    262258 
     259        pb44_spi_disable(sp); 
    263260        iounmap(sp->base); 
    264261err1: 
     
    274271 
    275272        spi_bitbang_stop(&sp->bitbang); 
     273        pb44_spi_disable(sp); 
    276274        iounmap(sp->base); 
    277275        platform_set_drvdata(pdev, NULL); 
Note: See TracChangeset for help on using the changeset viewer.