spi: rspi: Use dev_get_platdata() instead of raw dev.platform_data access

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Geert Uytterhoeven 2013-12-24 10:49:30 +01:00 коммит произвёл Mark Brown
Родитель 6ce4eac1f6
Коммит fc671a900b
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -904,7 +904,7 @@ static int rspi_probe(struct platform_device *pdev)
struct rspi_data *rspi;
int ret, irq;
char clk_name[16];
struct rspi_plat_data *rspi_pd = pdev->dev.platform_data;
struct rspi_plat_data *rspi_pd = dev_get_platdata(&pdev->dev);
const struct spi_ops *ops;
const struct platform_device_id *id_entry = pdev->id_entry;