Commit 42df36a6 authored by Fabio Estevam's avatar Fabio Estevam Committed by David S. Miller

tg3: 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: Nithin Nayak Sujir <nsujir@broadcom.com>
Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7b7a2bbb
...@@ -17533,15 +17533,9 @@ static int tg3_resume(struct device *device) ...@@ -17533,15 +17533,9 @@ static int tg3_resume(struct device *device)
return err; return err;
} }
#endif /* CONFIG_PM_SLEEP */
static SIMPLE_DEV_PM_OPS(tg3_pm_ops, tg3_suspend, tg3_resume); static SIMPLE_DEV_PM_OPS(tg3_pm_ops, tg3_suspend, tg3_resume);
#define TG3_PM_OPS (&tg3_pm_ops)
#else
#define TG3_PM_OPS NULL
#endif /* CONFIG_PM_SLEEP */
/** /**
* tg3_io_error_detected - called when PCI error is detected * tg3_io_error_detected - called when PCI error is detected
...@@ -17689,7 +17683,7 @@ static struct pci_driver tg3_driver = { ...@@ -17689,7 +17683,7 @@ static struct pci_driver tg3_driver = {
.probe = tg3_init_one, .probe = tg3_init_one,
.remove = tg3_remove_one, .remove = tg3_remove_one,
.err_handler = &tg3_err_handler, .err_handler = &tg3_err_handler,
.driver.pm = TG3_PM_OPS, .driver.pm = &tg3_pm_ops,
}; };
static int __init tg3_init(void) static int __init tg3_init(void)
......
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