Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1358786 > unrolled thread

[PATCH 0/2] PCI: mvebu: trivial cleanup

Started byJisheng Zhang <jszhang@marvell.com>
First post2016-03-16 11:10 +0100
Last post2016-03-16 11:10 +0100
Articles 2 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH 0/2] PCI: mvebu: trivial cleanup Jisheng Zhang <jszhang@marvell.com> - 2016-03-16 11:10 +0100
    [PATCH 1/2] PCI: mvebu: constify mvebu_pcie_pm_ops structure Jisheng Zhang <jszhang@marvell.com> - 2016-03-16 11:10 +0100

#1358786 — [PATCH 0/2] PCI: mvebu: trivial cleanup

FromJisheng Zhang <jszhang@marvell.com>
Date2016-03-16 11:10 +0100
Subject[PATCH 0/2] PCI: mvebu: trivial cleanup
Message-ID<rdgyR-7xF-5@gated-at.bofh.it>
trivial clean ups to pci-mvebu.c

Jisheng Zhang (2):
  PCI: mvebu: constify mvebu_pcie_pm_ops structure
  PCI: mvebu: use SET_NOIRQ_SYSTEM_SLEEP_PM_OPS for mvebu_pcie_pm_ops

 drivers/pci/host/pci-mvebu.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

-- 
2.7.0

[toc] | [next] | [standalone]


#1358788 — [PATCH 1/2] PCI: mvebu: constify mvebu_pcie_pm_ops structure

FromJisheng Zhang <jszhang@marvell.com>
Date2016-03-16 11:10 +0100
Subject[PATCH 1/2] PCI: mvebu: constify mvebu_pcie_pm_ops structure
Message-ID<rdgyS-7xF-7@gated-at.bofh.it>
In reply to#1358786
The mvebu_pcie_pm_ops structure is never modified, so declare it as
const.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
 drivers/pci/host/pci-mvebu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pci/host/pci-mvebu.c b/drivers/pci/host/pci-mvebu.c
index 53b79c5..6c43cb8 100644
--- a/drivers/pci/host/pci-mvebu.c
+++ b/drivers/pci/host/pci-mvebu.c
@@ -1298,7 +1298,7 @@ static const struct of_device_id mvebu_pcie_of_match_table[] = {
 };
 MODULE_DEVICE_TABLE(of, mvebu_pcie_of_match_table);
 
-static struct dev_pm_ops mvebu_pcie_pm_ops = {
+static const struct dev_pm_ops mvebu_pcie_pm_ops = {
 	.suspend_noirq = mvebu_pcie_suspend,
 	.resume_noirq = mvebu_pcie_resume,
 };
-- 
2.7.0

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web