at86rf230: remove unnecessary spi_set_drvdata
authorAlexander Aring <alex.aring@gmail.com>
Thu, 24 Apr 2014 17:09:16 +0000 (19:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 26 Apr 2014 16:20:34 +0000 (12:20 -0400)
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ieee802154/at86rf230.c

index 994c334fb4f49a23ddb28c6b9fbc2610d9a89f46..67c01bf1421ecc390e90ecf8ecc3a454ac428d1c 100644 (file)
@@ -1190,7 +1190,6 @@ static int at86rf230_probe(struct spi_device *spi)
 
 err_hw_init:
        flush_work(&lp->irqwork);
-       spi_set_drvdata(spi, NULL);
        mutex_destroy(&lp->bmux);
        ieee802154_free_device(lp->dev);