Patchwork [2/2] PCI: driver: Staticize pci_dev_pm_ops

login
register
mail settings
Submitter Sachin Kamat
Date Sept. 28, 2013, 10:12 a.m.
Message ID <1380363121-1977-2-git-send-email-sachin.kamat@linaro.org>
Download mbox | patch
Permalink /patch/278730/
State Accepted
Headers show

Comments

Sachin Kamat - Sept. 28, 2013, 10:12 a.m.
'pci_dev_pm_ops' is local to this file. Make it static.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
 drivers/pci/pci-driver.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Bjorn Helgaas - Oct. 4, 2013, 6:09 p.m.
On Sat, Sep 28, 2013 at 4:12 AM, Sachin Kamat <sachin.kamat@linaro.org> wrote:
> 'pci_dev_pm_ops' is local to this file. Make it static.
>
> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>

Applied to pci/misc, thanks!

Bjorn

> ---
>  drivers/pci/pci-driver.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
> index 38f3c01..653c8c5 100644
> --- a/drivers/pci/pci-driver.c
> +++ b/drivers/pci/pci-driver.c
> @@ -1124,7 +1124,7 @@ static int pci_pm_runtime_idle(struct device *dev)
>
>  #ifdef CONFIG_PM
>
> -const struct dev_pm_ops pci_dev_pm_ops = {
> +static const struct dev_pm_ops pci_dev_pm_ops = {
>         .prepare = pci_pm_prepare,
>         .complete = pci_pm_complete,
>         .suspend = pci_pm_suspend,
> --
> 1.7.9.5
>
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Sachin Kamat - Oct. 9, 2013, 3 a.m.
On 4 October 2013 23:39, Bjorn Helgaas <bhelgaas@google.com> wrote:
> On Sat, Sep 28, 2013 at 4:12 AM, Sachin Kamat <sachin.kamat@linaro.org> wrote:
>> 'pci_dev_pm_ops' is local to this file. Make it static.
>>
>> Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
>
> Applied to pci/misc, thanks!

Looks like this branch hasn't been pushed out yet.

Patch

diff --git a/drivers/pci/pci-driver.c b/drivers/pci/pci-driver.c
index 38f3c01..653c8c5 100644
--- a/drivers/pci/pci-driver.c
+++ b/drivers/pci/pci-driver.c
@@ -1124,7 +1124,7 @@  static int pci_pm_runtime_idle(struct device *dev)
 
 #ifdef CONFIG_PM
 
-const struct dev_pm_ops pci_dev_pm_ops = {
+static const struct dev_pm_ops pci_dev_pm_ops = {
 	.prepare = pci_pm_prepare,
 	.complete = pci_pm_complete,
 	.suspend = pci_pm_suspend,