diff options
Diffstat (limited to 'drivers/ata/pata_mpc52xx.c')
-rw-r--r-- | drivers/ata/pata_mpc52xx.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/ata/pata_mpc52xx.c b/drivers/ata/pata_mpc52xx.c index 0024ced3e200..ccd1c83a05cc 100644 --- a/drivers/ata/pata_mpc52xx.c +++ b/drivers/ata/pata_mpc52xx.c | |||
@@ -819,9 +819,7 @@ mpc52xx_ata_remove(struct platform_device *op) | |||
819 | return 0; | 819 | return 0; |
820 | } | 820 | } |
821 | 821 | ||
822 | 822 | #ifdef CONFIG_PM_SLEEP | |
823 | #ifdef CONFIG_PM | ||
824 | |||
825 | static int | 823 | static int |
826 | mpc52xx_ata_suspend(struct platform_device *op, pm_message_t state) | 824 | mpc52xx_ata_suspend(struct platform_device *op, pm_message_t state) |
827 | { | 825 | { |
@@ -847,10 +845,8 @@ mpc52xx_ata_resume(struct platform_device *op) | |||
847 | 845 | ||
848 | return 0; | 846 | return 0; |
849 | } | 847 | } |
850 | |||
851 | #endif | 848 | #endif |
852 | 849 | ||
853 | |||
854 | static struct of_device_id mpc52xx_ata_of_match[] = { | 850 | static struct of_device_id mpc52xx_ata_of_match[] = { |
855 | { .compatible = "fsl,mpc5200-ata", }, | 851 | { .compatible = "fsl,mpc5200-ata", }, |
856 | { .compatible = "mpc5200-ata", }, | 852 | { .compatible = "mpc5200-ata", }, |
@@ -861,7 +857,7 @@ static struct of_device_id mpc52xx_ata_of_match[] = { | |||
861 | static struct platform_driver mpc52xx_ata_of_platform_driver = { | 857 | static struct platform_driver mpc52xx_ata_of_platform_driver = { |
862 | .probe = mpc52xx_ata_probe, | 858 | .probe = mpc52xx_ata_probe, |
863 | .remove = mpc52xx_ata_remove, | 859 | .remove = mpc52xx_ata_remove, |
864 | #ifdef CONFIG_PM | 860 | #ifdef CONFIG_PM_SLEEP |
865 | .suspend = mpc52xx_ata_suspend, | 861 | .suspend = mpc52xx_ata_suspend, |
866 | .resume = mpc52xx_ata_resume, | 862 | .resume = mpc52xx_ata_resume, |
867 | #endif | 863 | #endif |