public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions
@ 2014-03-18 10:58 Bartlomiej Zolnierkiewicz
  2014-03-18 11:00 ` Viresh Kumar
  0 siblings, 1 reply; 3+ messages in thread
From: Bartlomiej Zolnierkiewicz @ 2014-03-18 10:58 UTC (permalink / raw)
  To: linux-arm-kernel

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

Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
Previous submission:
https://lkml.org/lkml/2013/10/4/369

 arch/arm/mach-spear/spear1340.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c
index 3fb6834..e0e4251 100644
--- a/arch/arm/mach-spear/spear1340.c
+++ b/arch/arm/mach-spear/spear1340.c
@@ -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;
-- 
1.8.2.3

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions
  2014-03-18 10:58 [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions Bartlomiej Zolnierkiewicz
@ 2014-03-18 11:00 ` Viresh Kumar
  2014-03-20  8:55   ` Pratyush Anand
  0 siblings, 1 reply; 3+ messages in thread
From: Viresh Kumar @ 2014-03-18 11:00 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 18, 2014 at 4:28 PM, Bartlomiej Zolnierkiewicz
<b.zolnierkie@samsung.com> wrote:
> Make sata_miphy_exit(), sata_suspend() and sata_resume() static.
>
> Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> Previous submission:
> https://lkml.org/lkml/2013/10/4/369
>
>  arch/arm/mach-spear/spear1340.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c
> index 3fb6834..e0e4251 100644
> --- a/arch/arm/mach-spear/spear1340.c
> +++ b/arch/arm/mach-spear/spear1340.c
> @@ -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;

Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions
  2014-03-18 11:00 ` Viresh Kumar
@ 2014-03-20  8:55   ` Pratyush Anand
  0 siblings, 0 replies; 3+ messages in thread
From: Pratyush Anand @ 2014-03-20  8:55 UTC (permalink / raw)
  To: linux-arm-kernel

On Tue, Mar 18, 2014 at 07:00:08PM +0800, Viresh Kumar wrote:
> On Tue, Mar 18, 2014 at 4:28 PM, Bartlomiej Zolnierkiewicz
> <b.zolnierkie@samsung.com> wrote:
> > Make sata_miphy_exit(), sata_suspend() and sata_resume() static.
> >
> > Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
> > Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> > ---
> > Previous submission:
> > https://lkml.org/lkml/2013/10/4/369
> >
> >  arch/arm/mach-spear/spear1340.c | 6 +++---
> >  1 file changed, 3 insertions(+), 3 deletions(-)
> >
> > diff --git a/arch/arm/mach-spear/spear1340.c b/arch/arm/mach-spear/spear1340.c
> > index 3fb6834..e0e4251 100644
> > --- a/arch/arm/mach-spear/spear1340.c
> > +++ b/arch/arm/mach-spear/spear1340.c
> > @@ -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;
> 
> Acked-by: Viresh Kumar <viresh.kumar@linaro.org>

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-03-20  8:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-18 10:58 [PATCH RESEND] ARM: SPEAr1340: static-ize SATA functions Bartlomiej Zolnierkiewicz
2014-03-18 11:00 ` Viresh Kumar
2014-03-20  8:55   ` Pratyush Anand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox