diff options
| -rw-r--r-- | drivers/rtc/rtc-ds1390.c | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-ds1390.c b/drivers/rtc/rtc-ds1390.c index f994257981a..11b70763bb5 100644 --- a/drivers/rtc/rtc-ds1390.c +++ b/drivers/rtc/rtc-ds1390.c @@ -136,7 +136,7 @@ static int ds1390_probe(struct spi_device *spi)  		dev_err(&spi->dev, "unable to allocate device memory\n");  		return -ENOMEM;  	} -	dev_set_drvdata(&spi->dev, chip); +	spi_set_drvdata(spi, chip);  	res = ds1390_get_reg(&spi->dev, DS1390_REG_SECONDS, &tmp);  	if (res != 0) {  |