Use the wrapper functions for getting and setting the driver data
using spi_device instead of using dev_{get|set}_drvdata with
&spi->dev, so we can directly pass a struct spi_device.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
 
        mutex_init(&mc->lock);
 
-       dev_set_drvdata(&spi->dev, mc);
+       spi_set_drvdata(spi, mc);
 
        mc->spi = spi;
 
        return ret;
 
 exit_destroy:
-       dev_set_drvdata(&spi->dev, NULL);
+       spi_set_drvdata(spi, NULL);
        mutex_destroy(&mc->lock);
        return ret;
 }
        struct mc33880 *mc;
        int ret;
 
-       mc = dev_get_drvdata(&spi->dev);
+       mc = spi_get_drvdata(spi);
        if (mc == NULL)
                return -ENODEV;
 
-       dev_set_drvdata(&spi->dev, NULL);
+       spi_set_drvdata(spi, NULL);
 
        ret = gpiochip_remove(&mc->chip);
        if (!ret)