diff options
Diffstat (limited to 'drivers/spi/spi-sh-hspi.c')
-rw-r--r-- | drivers/spi/spi-sh-hspi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-sh-hspi.c b/drivers/spi/spi-sh-hspi.c index 60cfae51c713..d3a62b9cfff3 100644 --- a/drivers/spi/spi-sh-hspi.c +++ b/drivers/spi/spi-sh-hspi.c | |||
@@ -297,7 +297,7 @@ static int hspi_probe(struct platform_device *pdev) | |||
297 | } | 297 | } |
298 | 298 | ||
299 | hspi = spi_master_get_devdata(master); | 299 | hspi = spi_master_get_devdata(master); |
300 | dev_set_drvdata(&pdev->dev, hspi); | 300 | platform_set_drvdata(pdev, hspi); |
301 | 301 | ||
302 | /* init hspi */ | 302 | /* init hspi */ |
303 | hspi->master = master; | 303 | hspi->master = master; |
@@ -341,7 +341,7 @@ static int hspi_probe(struct platform_device *pdev) | |||
341 | 341 | ||
342 | static int hspi_remove(struct platform_device *pdev) | 342 | static int hspi_remove(struct platform_device *pdev) |
343 | { | 343 | { |
344 | struct hspi_priv *hspi = dev_get_drvdata(&pdev->dev); | 344 | struct hspi_priv *hspi = platform_get_drvdata(pdev); |
345 | 345 | ||
346 | pm_runtime_disable(&pdev->dev); | 346 | pm_runtime_disable(&pdev->dev); |
347 | 347 | ||