diff options
-rw-r--r-- | drivers/spi/spi-s3c64xx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index cfa2c35dfeed..0087139090e4 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
@@ -1409,7 +1409,7 @@ static int s3c64xx_spi_remove(struct platform_device *pdev) | |||
1409 | #ifdef CONFIG_PM | 1409 | #ifdef CONFIG_PM |
1410 | static int s3c64xx_spi_suspend(struct device *dev) | 1410 | static int s3c64xx_spi_suspend(struct device *dev) |
1411 | { | 1411 | { |
1412 | struct spi_master *master = spi_master_get(dev_get_drvdata(dev)); | 1412 | struct spi_master *master = dev_get_drvdata(dev); |
1413 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); | 1413 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); |
1414 | 1414 | ||
1415 | spi_master_suspend(master); | 1415 | spi_master_suspend(master); |
@@ -1428,7 +1428,7 @@ static int s3c64xx_spi_suspend(struct device *dev) | |||
1428 | 1428 | ||
1429 | static int s3c64xx_spi_resume(struct device *dev) | 1429 | static int s3c64xx_spi_resume(struct device *dev) |
1430 | { | 1430 | { |
1431 | struct spi_master *master = spi_master_get(dev_get_drvdata(dev)); | 1431 | struct spi_master *master = dev_get_drvdata(dev); |
1432 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); | 1432 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); |
1433 | struct s3c64xx_spi_info *sci = sdd->cntrlr_info; | 1433 | struct s3c64xx_spi_info *sci = sdd->cntrlr_info; |
1434 | 1434 | ||
@@ -1452,7 +1452,7 @@ static int s3c64xx_spi_resume(struct device *dev) | |||
1452 | #ifdef CONFIG_PM_RUNTIME | 1452 | #ifdef CONFIG_PM_RUNTIME |
1453 | static int s3c64xx_spi_runtime_suspend(struct device *dev) | 1453 | static int s3c64xx_spi_runtime_suspend(struct device *dev) |
1454 | { | 1454 | { |
1455 | struct spi_master *master = spi_master_get(dev_get_drvdata(dev)); | 1455 | struct spi_master *master = dev_get_drvdata(dev); |
1456 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); | 1456 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); |
1457 | 1457 | ||
1458 | clk_disable(sdd->clk); | 1458 | clk_disable(sdd->clk); |
@@ -1463,7 +1463,7 @@ static int s3c64xx_spi_runtime_suspend(struct device *dev) | |||
1463 | 1463 | ||
1464 | static int s3c64xx_spi_runtime_resume(struct device *dev) | 1464 | static int s3c64xx_spi_runtime_resume(struct device *dev) |
1465 | { | 1465 | { |
1466 | struct spi_master *master = spi_master_get(dev_get_drvdata(dev)); | 1466 | struct spi_master *master = dev_get_drvdata(dev); |
1467 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); | 1467 | struct s3c64xx_spi_driver_data *sdd = spi_master_get_devdata(master); |
1468 | 1468 | ||
1469 | clk_enable(sdd->src_clk); | 1469 | clk_enable(sdd->src_clk); |