X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=drivers%2Fspi%2Fspidev.c;h=5d869c4d3eb2a2e3dd9f46ae3ebf1cfbd333e61f;hb=9febd042dae418cea842a8fb697cde10a4887a01;hp=89a43755a453bb265ebfa789adca222a8cce1ebe;hpb=6b425660f45cdea177fe95388e081afa947b1506;p=linux-2.6-omap-h63xx.git diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 89a43755a45..5d869c4d3eb 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -597,7 +597,9 @@ static int spidev_probe(struct spi_device *spi) } mutex_unlock(&device_list_lock); - if (status != 0) + if (status == 0) + spi_set_drvdata(spi, spidev); + else kfree(spidev); return status;