diff options
author | Jingoo Han <jg1.han@samsung.com> | 2013-07-30 10:17:44 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2013-08-30 22:34:31 +0200 |
commit | 0278fd3fa34fb029e40224dd83d2628254f45481 (patch) | |
tree | c1a9045ec8311957316125370499cf63cad26c28 /drivers/mtd/devices/sst25l.c | |
parent | mtd: denali: use NAND_CI_CELLTYPE_MSK instead of hardcoded constant (diff) | |
download | linux-0278fd3fa34fb029e40224dd83d2628254f45481.tar.xz linux-0278fd3fa34fb029e40224dd83d2628254f45481.zip |
mtd: devices: use dev_get_platdata()
Use the wrapper function for retrieving the platform data instead of
accessing dev->platform_data directly.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'drivers/mtd/devices/sst25l.c')
-rw-r--r-- | drivers/mtd/devices/sst25l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/devices/sst25l.c b/drivers/mtd/devices/sst25l.c index 38b59790f4b7..a42f1f0e7281 100644 --- a/drivers/mtd/devices/sst25l.c +++ b/drivers/mtd/devices/sst25l.c @@ -372,7 +372,7 @@ static int sst25l_probe(struct spi_device *spi) mutex_init(&flash->lock); spi_set_drvdata(spi, flash); - data = spi->dev.platform_data; + data = dev_get_platdata(&spi->dev); if (data && data->name) flash->mtd.name = data->name; else |