lkml.org 
[lkml]   [2007]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 18/20] Blackfin SPI driver: tweak spi cleanup function to match newer kernel changes
    Date
    From: Mike Frysinger <michael.frysinger@analog.com>

    Signed-off-by: Mike Frysinger <michael.frysinger@analog.com>
    Signed-off-by: Bryan Wu <bryan.wu@analog.com>
    Cc: David Brownell <dbrownell@users.sourceforge.net>
    ---
    drivers/spi/spi_bfin5xx.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c
    index 7d2d9ec..a2d4884 100644
    --- a/drivers/spi/spi_bfin5xx.c
    +++ b/drivers/spi/spi_bfin5xx.c
    @@ -1082,7 +1082,7 @@ static int setup(struct spi_device *spi)
    */
    static void cleanup(struct spi_device *spi)
    {
    - struct chip_data *chip = spi_get_ctldata((struct spi_device *)spi);
    + struct chip_data *chip = spi_get_ctldata(spi);

    kfree(chip);
    }
    --
    1.5.2
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2007-05-28 10:45    [W:0.019 / U:0.824 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site