Skip to content

Commit

Permalink
mtd: r852: make r852_pm_ops static
Browse files Browse the repository at this point in the history
It is not used outside this driver so no need to make the symbol global.
Also make r852_suspend and r852_resume static.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
  • Loading branch information
Axel Lin authored and Artem Bityutskiy committed Oct 1, 2011
1 parent ada766e commit 1bba688
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/mtd/nand/r852.c
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ void r852_shutdown(struct pci_dev *pci_dev)
}

#ifdef CONFIG_PM
int r852_suspend(struct device *device)
static int r852_suspend(struct device *device)
{
struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));

Expand All @@ -1048,7 +1048,7 @@ int r852_suspend(struct device *device)
return 0;
}

int r852_resume(struct device *device)
static int r852_resume(struct device *device)
{
struct r852_device *dev = pci_get_drvdata(to_pci_dev(device));

Expand Down Expand Up @@ -1092,7 +1092,7 @@ static const struct pci_device_id r852_pci_id_tbl[] = {

MODULE_DEVICE_TABLE(pci, r852_pci_id_tbl);

SIMPLE_DEV_PM_OPS(r852_pm_ops, r852_suspend, r852_resume);
static SIMPLE_DEV_PM_OPS(r852_pm_ops, r852_suspend, r852_resume);

static struct pci_driver r852_pci_driver = {
.name = DRV_NAME,
Expand Down

0 comments on commit 1bba688

Please sign in to comment.