Skip to contentSkip to conversation

ARM: SPEAr1340: static-ize SATA functions

PATCH RESEND In review Bartlomiej Zolnierkiewicz 3 participants 3 messages Mar 18, 2014 – Mar 20, 2014

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 ARM: SPEAr1340: static-ize SATA functions

Make sata_miphy_exit(), sata_suspend() and sata_resume() static.

---
Previous submission:
https://lkml.org/lkml/2013/10/4/369

 arch/arm/mach-spear/spear1340.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-spear/spear1340.c +3 -3
index 3fb6834..e0e4251 100644
@@ -93,7 +93,7 @@ static int sata_miphy_init(struct device *dev, void __iomem *addr)
 	return 0;
 }
 
-void sata_miphy_exit(struct device *dev)
+static void sata_miphy_exit(struct device *dev)
 {
 	writel(0, SPEAR1340_PCIE_SATA_CFG);
 	writel(0, SPEAR1340_PCIE_MIPHY_CFG);
@@ -107,7 +107,7 @@ void sata_miphy_exit(struct device *dev)
 	msleep(20);
 }
 
-int sata_suspend(struct device *dev)
+static int sata_suspend(struct device *dev)
 {
 	if (dev->power.power_state.event == PM_EVENT_FREEZE)
 		return 0;
@@ -117,7 +117,7 @@ int sata_suspend(struct device *dev)
 	return 0;
 }
 
-int sata_resume(struct device *dev)
+static int sata_resume(struct device *dev)
 {
 	if (dev->power.power_state.event == PM_EVENT_THAW)
 		return 0;
Signature · 1 line
1.8.2.3
Acked-by on v1 1/1
#1 lore raw
Quoted 34 lines · Bartlomiej Zolnierkiewicz

Make sata_miphy_exit(), sata_suspend() and sata_resume() static.

---
Previous submission:
https://lkml.org/lkml/2013/10/4/369

 arch/arm/mach-spear/spear1340.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-spear/spear1340.c +2 -2
index 3fb6834..e0e4251 100644
@@ -93,7 +93,7 @@ static int sata_miphy_init(struct device *dev, void __iomem *addr)
        return 0;
 }
 
-void sata_miphy_exit(struct device *dev)
+static void sata_miphy_exit(struct device *dev)
 {
        writel(0, SPEAR1340_PCIE_SATA_CFG);
        writel(0, SPEAR1340_PCIE_MIPHY_CFG);
@@ -107,7 +107,7 @@ void sata_miphy_exit(struct device *dev)
        msleep(20);
 }
 
-int sata_suspend(struct device *dev)
+static int sata_suspend(struct device *dev)
 {
        if (dev->power.power_state.event == PM_EVENT_FREEZE)
                return 0;

arch/arm/mach-spear/spear1340.c int sata_suspend(struct device *dev) · line 123

Quoted 8 lines
arch/arm/mach-spear/spear1340.c +1 -1
@@ -117,7 +117,7 @@ int sata_suspend(struct device *dev)
        return 0;
 }
 
-int sata_resume(struct device *dev)
+static int sata_resume(struct device *dev)
 {
        if (dev->power.power_state.event == PM_EVENT_THAW)
                return 0;
#2 lore raw
Quoted 39 lines · Viresh Kumar
Quoted 37 lines · Bartlomiej Zolnierkiewicz

Make sata_miphy_exit(), sata_suspend() and sata_resume() static.

---
Previous submission:
https://lkml.org/lkml/2013/10/4/369

 arch/arm/mach-spear/spear1340.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-spear/spear1340.c +2 -2
index 3fb6834..e0e4251 100644
@@ -93,7 +93,7 @@ static int sata_miphy_init(struct device *dev, void __iomem *addr)
        return 0;
 }
 
-void sata_miphy_exit(struct device *dev)
+static void sata_miphy_exit(struct device *dev)
 {
        writel(0, SPEAR1340_PCIE_SATA_CFG);
        writel(0, SPEAR1340_PCIE_MIPHY_CFG);
@@ -107,7 +107,7 @@ void sata_miphy_exit(struct device *dev)
        msleep(20);
 }
 
-int sata_suspend(struct device *dev)
+static int sata_suspend(struct device *dev)
 {
        if (dev->power.power_state.event == PM_EVENT_FREEZE)
                return 0;
@@ -117,7 +117,7 @@ int sata_suspend(struct device *dev)
        return 0;
 }
 
Quoted 7 lines

arch/arm/mach-spear/spear1340.c int sata_suspend(struct device *dev) · line 123

Quoted 5 lines
arch/arm/mach-spear/spear1340.c +1 -1
-int sata_resume(struct device *dev)
+static int sata_resume(struct device *dev)
 {
        if (dev->power.power_state.event == PM_EVENT_THAW)
                return 0;

This patch will not be needed any more, since sata platform code has already been cleaned up.

See:
https://lkml.org/lkml/2014/2/28/174

Regards
Pratyush