Commit 7b7a2bbb authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller

atl1: Remove unneeded PM_OPS definitions

SIMPLE_DEV_PM_OPS macro can handle !CONFIG_PM_SLEEP case nicely, so there is no
need to define PM_OPS for both CONFIG_PM_SLEEP and !CONFIG_PM_SLEEP cases.

Remove the unneeded definitions.

Cc: Jay Cliburn <jcliburn@gmail.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 4fcc999e
...@@ -2876,16 +2876,9 @@ static int atl1_resume(struct device *dev) ...@@ -2876,16 +2876,9 @@ static int atl1_resume(struct device *dev)
return 0; return 0;
} }
#endif
static SIMPLE_DEV_PM_OPS(atl1_pm_ops, atl1_suspend, atl1_resume); static SIMPLE_DEV_PM_OPS(atl1_pm_ops, atl1_suspend, atl1_resume);
#define ATL1_PM_OPS (&atl1_pm_ops)
#else
static int atl1_suspend(struct device *dev) { return 0; }
#define ATL1_PM_OPS NULL
#endif
static void atl1_shutdown(struct pci_dev *pdev) static void atl1_shutdown(struct pci_dev *pdev)
{ {
...@@ -3147,7 +3140,7 @@ static struct pci_driver atl1_driver = { ...@@ -3147,7 +3140,7 @@ static struct pci_driver atl1_driver = {
.probe = atl1_probe, .probe = atl1_probe,
.remove = atl1_remove, .remove = atl1_remove,
.shutdown = atl1_shutdown, .shutdown = atl1_shutdown,
.driver.pm = ATL1_PM_OPS, .driver.pm = &atl1_pm_ops,
}; };
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment