mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mtd: r852: make r852_pm_ops static
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 <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]>
This commit is contained in:
parent
ada766e959
commit
1bba688b5a
1 changed files with 3 additions and 3 deletions
|
|
@ -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));
|
||||
|
||||
|
|
@ -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));
|
||||
|
||||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue