Skip to content

Commit

Permalink
staging/sm7xxfb: Convert to SIMPLE_DEV_PM_OPS
Browse files Browse the repository at this point in the history
Instead of assigning the pm_ops fields individually we can simply use
SIMPLE_DEV_PM_OPS.

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
Acked-by: Javier Muñoz <jmunhoz@igalia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent 97b3e0e commit 0f1bf4b
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions drivers/staging/sm7xxfb/sm7xxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -1006,15 +1006,7 @@ static int smtcfb_pci_resume(struct device *device)
return 0;
}

static const struct dev_pm_ops sm7xx_pm_ops = {
.suspend = smtcfb_pci_suspend,
.resume = smtcfb_pci_resume,
.freeze = smtcfb_pci_suspend,
.thaw = smtcfb_pci_resume,
.poweroff = smtcfb_pci_suspend,
.restore = smtcfb_pci_resume,
};

static SIMPLE_DEV_PM_OPS(sm7xx_pm_ops, smtcfb_pci_suspend, smtcfb_pci_resume);
#define SM7XX_PM_OPS (&sm7xx_pm_ops)

#else /* !CONFIG_PM */
Expand Down

0 comments on commit 0f1bf4b

Please sign in to comment.