mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] spi: Fix builderror in spi-pl022.c
       [not found] <E1Qvo1q-0000qv-TQ@rmk-PC.arm.linux.org.uk>
@ 2011-08-28 19:26 ` Peter Huewe
  2011-08-28 20:06   ` Russell King - ARM Linux
                     ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Peter Huewe @ 2011-08-28 19:26 UTC (permalink / raw)
  To: Russell King
  Cc: Linus Walleij, Rafael J. Wysocki, Grant Likely,
	spi-devel-general, linux-kernel, linux-pm, linux-arm-kernel,
	Peter Huewe

This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
runtime PM support to core Primecell driver") which unfortunately was a little
bit incomplete and did contain a typo (11 instead of 22).
I'm not sure how this patch could have been tested back then, if it
doesn't even compile ;)

The build failure was:
drivers/spi/spi-pl022.c:2292: error: 'adev' undeclared (first use in
this function)
drivers/spi/spi-pl022.c:2344: error: 'pl022_suspend' undeclared here
(not in a function)

The build failure appears e.g. for the u8500 and realview defconfig.

LinuxVersion: linux next-20110826

Signed-off-by: Peter Huewe <peterhuewe@gmx.de>
---
 drivers/spi/spi-pl022.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 078338f..3520cf9 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2282,14 +2282,14 @@ pl022_remove(struct amba_device *adev)
 }
 
 #ifdef CONFIG_SUSPEND
-static int pl011_suspend(struct device *dev)
+static int pl022_suspend(struct device *dev)
 {
 	struct pl022 *pl022 = dev_get_drvdata(dev);
 	int status = 0;
 
 	status = stop_queue(pl022);
 	if (status) {
-		dev_warn(&adev->dev, "suspend cannot stop queue\n");
+		dev_warn(dev, "suspend cannot stop queue\n");
 		return status;
 	}
 
@@ -2298,7 +2298,7 @@ static int pl011_suspend(struct device *dev)
 	load_ssp_default_config(pl022);
 	amba_pclk_disable(pl022->adev);
 	amba_vcore_disable(pl022->adev);
-	dev_dbg(&adev->dev, "suspended\n");
+	dev_dbg(dev, "suspended\n");
 	return 0;
 }
 
-- 
1.7.3.4


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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-08-28 19:26 ` [PATCH] spi: Fix builderror in spi-pl022.c Peter Huewe
@ 2011-08-28 20:06   ` Russell King - ARM Linux
  2011-08-29  8:41   ` Linus Walleij
  2011-09-05 12:45   ` Linus Walleij
  2 siblings, 0 replies; 8+ messages in thread
From: Russell King - ARM Linux @ 2011-08-28 20:06 UTC (permalink / raw)
  To: Peter Huewe
  Cc: Linus Walleij, Rafael J. Wysocki, Grant Likely,
	spi-devel-general, linux-kernel, linux-pm, linux-arm-kernel

On Sun, Aug 28, 2011 at 09:26:59PM +0200, Peter Huewe wrote:
> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
> runtime PM support to core Primecell driver") which unfortunately was a little
> bit incomplete and did contain a typo (11 instead of 22).
> I'm not sure how this patch could have been tested back then, if it
> doesn't even compile ;)

Maybe it was tested on configs without CONFIG_SUSPEND enabled - which
is highly likely since my ARM development boards don't support S2RAM.

That's the problem with ifdef'ing code.  It makes it impossible to
ensure that it's properly tested.

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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-08-28 19:26 ` [PATCH] spi: Fix builderror in spi-pl022.c Peter Huewe
  2011-08-28 20:06   ` Russell King - ARM Linux
@ 2011-08-29  8:41   ` Linus Walleij
  2011-09-05 12:45   ` Linus Walleij
  2 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2011-08-29  8:41 UTC (permalink / raw)
  To: Peter Huewe
  Cc: Russell King, Rafael J. Wysocki, Grant Likely, spi-devel-general,
	linux-kernel, linux-pm, linux-arm-kernel

On Sun, Aug 28, 2011 at 9:26 PM, Peter Huewe <peterhuewe@gmx.de> wrote:

> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
> runtime PM support to core Primecell driver") which unfortunately was a little
> bit incomplete and did contain a typo (11 instead of 22).
> I'm not sure how this patch could have been tested back then, if it
> doesn't even compile ;)
>
> The build failure was:
> drivers/spi/spi-pl022.c:2292: error: 'adev' undeclared (first use in
> this function)
> drivers/spi/spi-pl022.c:2344: error: 'pl022_suspend' undeclared here
> (not in a function)
>
> The build failure appears e.g. for the u8500 and realview defconfig.
>
> LinuxVersion: linux next-20110826
>
> Signed-off-by: Peter Huewe <peterhuewe@gmx.de>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Thanks!
Linus Walleij

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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-08-28 19:26 ` [PATCH] spi: Fix builderror in spi-pl022.c Peter Huewe
  2011-08-28 20:06   ` Russell King - ARM Linux
  2011-08-29  8:41   ` Linus Walleij
@ 2011-09-05 12:45   ` Linus Walleij
  2011-09-20 20:45     ` Linus Walleij
  2 siblings, 1 reply; 8+ messages in thread
From: Linus Walleij @ 2011-09-05 12:45 UTC (permalink / raw)
  To: Grant Likely
  Cc: Russell King, Rafael J. Wysocki, spi-devel-general, linux-kernel,
	linux-pm, linux-arm-kernel, Peter Huewe

On Sun, Aug 28, 2011 at 9:26 PM, Peter Huewe <peterhuewe@gmx.de> wrote:

> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
> runtime PM support to core Primecell driver") which unfortunately was a little
> bit incomplete and did contain a typo (11 instead of 22).
> I'm not sure how this patch could have been tested back then, if it
> doesn't even compile ;)

Grant can you please apply this patch? Right now linux-next is
breaking because of this missing patch...

Thanks,
Linus Walleij

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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-09-05 12:45   ` Linus Walleij
@ 2011-09-20 20:45     ` Linus Walleij
  2011-09-20 21:52       ` Grant Likely
  2011-09-21 13:10       ` Russell King - ARM Linux
  0 siblings, 2 replies; 8+ messages in thread
From: Linus Walleij @ 2011-09-20 20:45 UTC (permalink / raw)
  To: Grant Likely
  Cc: Russell King, Rafael J. Wysocki, spi-devel-general, linux-kernel,
	linux-pm, linux-arm-kernel, Peter Huewe

On Mon, Sep 5, 2011 at 2:45 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Sun, Aug 28, 2011 at 9:26 PM, Peter Huewe <peterhuewe@gmx.de> wrote:
>
>> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
>> runtime PM support to core Primecell driver") which unfortunately was a little
>> bit incomplete and did contain a typo (11 instead of 22).
>> I'm not sure how this patch could have been tested back then, if it
>> doesn't even compile ;)
>
> Grant can you please apply this patch? Right now linux-next is
> breaking because of this missing patch...

Ping on this... ignore if it's been picked already.

Thanks,
Linus Walleij

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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-09-20 20:45     ` Linus Walleij
@ 2011-09-20 21:52       ` Grant Likely
  2011-09-21 13:10       ` Russell King - ARM Linux
  1 sibling, 0 replies; 8+ messages in thread
From: Grant Likely @ 2011-09-20 21:52 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Russell King, Rafael J. Wysocki, spi-devel-general, linux-kernel,
	linux-pm, linux-arm-kernel, Peter Huewe

On Tue, Sep 20, 2011 at 10:45:41PM +0200, Linus Walleij wrote:
> On Mon, Sep 5, 2011 at 2:45 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> > On Sun, Aug 28, 2011 at 9:26 PM, Peter Huewe <peterhuewe@gmx.de> wrote:
> >
> >> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
> >> runtime PM support to core Primecell driver") which unfortunately was a little
> >> bit incomplete and did contain a typo (11 instead of 22).
> >> I'm not sure how this patch could have been tested back then, if it
> >> doesn't even compile ;)
> >
> > Grant can you please apply this patch? Right now linux-next is
> > breaking because of this missing patch...
> 
> Ping on this... ignore if it's been picked already.

It's not a patch that went through my tree, so I cannot pick it up.

g.


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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-09-20 20:45     ` Linus Walleij
  2011-09-20 21:52       ` Grant Likely
@ 2011-09-21 13:10       ` Russell King - ARM Linux
  2011-09-21 15:54         ` Linus Walleij
  1 sibling, 1 reply; 8+ messages in thread
From: Russell King - ARM Linux @ 2011-09-21 13:10 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Grant Likely, Rafael J. Wysocki, spi-devel-general, linux-kernel,
	linux-pm, linux-arm-kernel, Peter Huewe

On Tue, Sep 20, 2011 at 10:45:41PM +0200, Linus Walleij wrote:
> On Mon, Sep 5, 2011 at 2:45 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> > On Sun, Aug 28, 2011 at 9:26 PM, Peter Huewe <peterhuewe@gmx.de> wrote:
> >
> >> This patch fixes a build error, introduced by commit (67fc8b9f, "PM: add
> >> runtime PM support to core Primecell driver") which unfortunately was a little
> >> bit incomplete and did contain a typo (11 instead of 22).
> >> I'm not sure how this patch could have been tested back then, if it
> >> doesn't even compile ;)
> >
> > Grant can you please apply this patch? Right now linux-next is
> > breaking because of this missing patch...
> 
> Ping on this... ignore if it's been picked already.

Isn't it already fixed?  I've had this in my tree for quite some time
(since 5th September) which should also be in linux-next.

b21c57c ARM: 7079/1: spi: Fix builderror in spi-pl022.c
612f2eb PM: add runtime PM support to MMCI
67fc8b9 PM: add runtime PM support to core Primecell driver

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

* Re: [PATCH] spi: Fix builderror in spi-pl022.c
  2011-09-21 13:10       ` Russell King - ARM Linux
@ 2011-09-21 15:54         ` Linus Walleij
  0 siblings, 0 replies; 8+ messages in thread
From: Linus Walleij @ 2011-09-21 15:54 UTC (permalink / raw)
  To: Russell King - ARM Linux
  Cc: Grant Likely, Rafael J. Wysocki, spi-devel-general, linux-kernel,
	linux-pm, linux-arm-kernel, Peter Huewe

On Wed, Sep 21, 2011 at 3:10 PM, Russell King - ARM Linux
<linux@arm.linux.org.uk> wrote:
> On Tue, Sep 20, 2011 at 10:45:41PM +0200, Linus Walleij wrote:

>> > Grant can you please apply this patch? Right now linux-next is
>> > breaking because of this missing patch...
>>
>> Ping on this... ignore if it's been picked already.
>
> Isn't it already fixed?  I've had this in my tree for quite some time
> (since 5th September) which should also be in linux-next.

It is, just wasn't getting my linux-next right after all the kernelorg
downtime.

Thanks Russell, and sorry for the fuzz.

Yours,
Linus Walleij

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

end of thread, other threads:[~2011-09-21 15:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <E1Qvo1q-0000qv-TQ@rmk-PC.arm.linux.org.uk>
2011-08-28 19:26 ` [PATCH] spi: Fix builderror in spi-pl022.c Peter Huewe
2011-08-28 20:06   ` Russell King - ARM Linux
2011-08-29  8:41   ` Linus Walleij
2011-09-05 12:45   ` Linus Walleij
2011-09-20 20:45     ` Linus Walleij
2011-09-20 21:52       ` Grant Likely
2011-09-21 13:10       ` Russell King - ARM Linux
2011-09-21 15:54         ` Linus Walleij

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

all inboxes | Powered by JetHome®