aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-09-01 08:49:11 -0400
committerMark Brown <broonie@linaro.org>2013-09-01 08:49:11 -0400
commit368ce0bca434347b7cd5550ee71b046d7727830f (patch)
tree305a654fffb4cead724f182d0184cbb164275c08
parent874915ed4b88fd616e6aa635bea163a470e98219 (diff)
parent33bf2c0b7d5af73763f41fd10d18f4c1f574c7fb (diff)
Merge remote-tracking branch 'spi/topic/sh-msiof' into spi-next
-rw-r--r--drivers/spi/spi-sh-msiof.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/drivers/spi/spi-sh-msiof.c b/drivers/spi/spi-sh-msiof.c
index cbc7f2216c16..2a95435a6a11 100644
--- a/drivers/spi/spi-sh-msiof.c
+++ b/drivers/spi/spi-sh-msiof.c
@@ -745,18 +745,6 @@ static int sh_msiof_spi_remove(struct platform_device *pdev)
745 return ret; 745 return ret;
746} 746}
747 747
748static int sh_msiof_spi_runtime_nop(struct device *dev)
749{
750 /* Runtime PM callback shared between ->runtime_suspend()
751 * and ->runtime_resume(). Simply returns success.
752 *
753 * This driver re-initializes all registers after
754 * pm_runtime_get_sync() anyway so there is no need
755 * to save and restore registers here.
756 */
757 return 0;
758}
759
760#ifdef CONFIG_OF 748#ifdef CONFIG_OF
761static const struct of_device_id sh_msiof_match[] = { 749static const struct of_device_id sh_msiof_match[] = {
762 { .compatible = "renesas,sh-msiof", }, 750 { .compatible = "renesas,sh-msiof", },
@@ -766,18 +754,12 @@ static const struct of_device_id sh_msiof_match[] = {
766MODULE_DEVICE_TABLE(of, sh_msiof_match); 754MODULE_DEVICE_TABLE(of, sh_msiof_match);
767#endif 755#endif
768 756
769static struct dev_pm_ops sh_msiof_spi_dev_pm_ops = {
770 .runtime_suspend = sh_msiof_spi_runtime_nop,
771 .runtime_resume = sh_msiof_spi_runtime_nop,
772};
773
774static struct platform_driver sh_msiof_spi_drv = { 757static struct platform_driver sh_msiof_spi_drv = {
775 .probe = sh_msiof_spi_probe, 758 .probe = sh_msiof_spi_probe,
776 .remove = sh_msiof_spi_remove, 759 .remove = sh_msiof_spi_remove,
777 .driver = { 760 .driver = {
778 .name = "spi_sh_msiof", 761 .name = "spi_sh_msiof",
779 .owner = THIS_MODULE, 762 .owner = THIS_MODULE,
780 .pm = &sh_msiof_spi_dev_pm_ops,
781 .of_match_table = of_match_ptr(sh_msiof_match), 763 .of_match_table = of_match_ptr(sh_msiof_match),
782 }, 764 },
783}; 765};