diff options
Diffstat (limited to 'drivers/mtd/devices/m25p80.c')
-rw-r--r-- | drivers/mtd/devices/m25p80.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index 2f3d2a5ff349..d2232e7568d3 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
@@ -972,7 +972,7 @@ static int m25p_probe(struct spi_device *spi) | |||
972 | 972 | ||
973 | flash->spi = spi; | 973 | flash->spi = spi; |
974 | mutex_init(&flash->lock); | 974 | mutex_init(&flash->lock); |
975 | dev_set_drvdata(&spi->dev, flash); | 975 | spi_set_drvdata(spi, flash); |
976 | 976 | ||
977 | /* | 977 | /* |
978 | * Atmel, SST and Intel/Numonyx serial flash tend to power | 978 | * Atmel, SST and Intel/Numonyx serial flash tend to power |
@@ -1080,7 +1080,7 @@ static int m25p_probe(struct spi_device *spi) | |||
1080 | 1080 | ||
1081 | static int m25p_remove(struct spi_device *spi) | 1081 | static int m25p_remove(struct spi_device *spi) |
1082 | { | 1082 | { |
1083 | struct m25p *flash = dev_get_drvdata(&spi->dev); | 1083 | struct m25p *flash = spi_get_drvdata(spi); |
1084 | int status; | 1084 | int status; |
1085 | 1085 | ||
1086 | /* Clean up MTD stuff. */ | 1086 | /* Clean up MTD stuff. */ |