diff options
author | Mark Brown <broonie@linaro.org> | 2013-09-01 08:49:03 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-09-01 08:49:03 -0400 |
commit | 68aa4cb3374a5f47fe1f7b31e0b5893826c05c69 (patch) | |
tree | aa350fff2ef8ef496d46820487198e9bbfe2bf77 /drivers/spi/spi-bcm63xx.c | |
parent | 11c28cfc1e4f32dc6d02373a1e80d7e83584ed21 (diff) | |
parent | b5f9a9d5113efe11a3b9dad600a6f833274da595 (diff) |
Merge remote-tracking branch 'spi/topic/pdata' into spi-next
Diffstat (limited to 'drivers/spi/spi-bcm63xx.c')
-rw-r--r-- | drivers/spi/spi-bcm63xx.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/spi/spi-bcm63xx.c b/drivers/spi/spi-bcm63xx.c index a21fef4a3bb1..de197f72e082 100644 --- a/drivers/spi/spi-bcm63xx.c +++ b/drivers/spi/spi-bcm63xx.c | |||
@@ -353,7 +353,7 @@ static int bcm63xx_spi_probe(struct platform_device *pdev) | |||
353 | { | 353 | { |
354 | struct resource *r; | 354 | struct resource *r; |
355 | struct device *dev = &pdev->dev; | 355 | struct device *dev = &pdev->dev; |
356 | struct bcm63xx_spi_pdata *pdata = pdev->dev.platform_data; | 356 | struct bcm63xx_spi_pdata *pdata = dev_get_platdata(&pdev->dev); |
357 | int irq; | 357 | int irq; |
358 | struct spi_master *master; | 358 | struct spi_master *master; |
359 | struct clk *clk; | 359 | struct clk *clk; |
@@ -474,8 +474,7 @@ static int bcm63xx_spi_remove(struct platform_device *pdev) | |||
474 | #ifdef CONFIG_PM | 474 | #ifdef CONFIG_PM |
475 | static int bcm63xx_spi_suspend(struct device *dev) | 475 | static int bcm63xx_spi_suspend(struct device *dev) |
476 | { | 476 | { |
477 | struct spi_master *master = | 477 | struct spi_master *master = dev_get_drvdata(dev); |
478 | platform_get_drvdata(to_platform_device(dev)); | ||
479 | struct bcm63xx_spi *bs = spi_master_get_devdata(master); | 478 | struct bcm63xx_spi *bs = spi_master_get_devdata(master); |
480 | 479 | ||
481 | spi_master_suspend(master); | 480 | spi_master_suspend(master); |
@@ -487,8 +486,7 @@ static int bcm63xx_spi_suspend(struct device *dev) | |||
487 | 486 | ||
488 | static int bcm63xx_spi_resume(struct device *dev) | 487 | static int bcm63xx_spi_resume(struct device *dev) |
489 | { | 488 | { |
490 | struct spi_master *master = | 489 | struct spi_master *master = dev_get_drvdata(dev); |
491 | platform_get_drvdata(to_platform_device(dev)); | ||
492 | struct bcm63xx_spi *bs = spi_master_get_devdata(master); | 490 | struct bcm63xx_spi *bs = spi_master_get_devdata(master); |
493 | 491 | ||
494 | clk_prepare_enable(bs->clk); | 492 | clk_prepare_enable(bs->clk); |