提交 fc671a90 编写于 作者: G Geert Uytterhoeven 提交者: Mark Brown

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

Signed-off-by: NGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: NMark Brown <broonie@linaro.org>
上级 6ce4eac1
...@@ -904,7 +904,7 @@ static int rspi_probe(struct platform_device *pdev) ...@@ -904,7 +904,7 @@ static int rspi_probe(struct platform_device *pdev)
struct rspi_data *rspi; struct rspi_data *rspi;
int ret, irq; int ret, irq;
char clk_name[16]; 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 spi_ops *ops;
const struct platform_device_id *id_entry = pdev->id_entry; const struct platform_device_id *id_entry = pdev->id_entry;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册