* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
@ 2009-12-15 20:11 Marc Zyngier
2009-12-16 7:58 ` Dominik Brodowski
0 siblings, 1 reply; 6+ messages in thread
From: Marc Zyngier @ 2009-12-15 20:11 UTC (permalink / raw)
To: linux-arm-kernel
Commit d0d26c33b63c7ec10c3fdf9c7ce0aa035f0b3200:
PCMCIA: fix pxa2xx_lubbock modular build error
broke the driver by propagating a pointer to the platform_device
where a pointer to the generic device was expected, leading to a
spectacular crash...
Signed-off-by: Marc Zyngier <maz@misterjones.org>
---
drivers/pcmcia/pxa2xx_base.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pcmcia/pxa2xx_base.c b/drivers/pcmcia/pxa2xx_base.c
index 3aabf1e..76e640b 100644
--- a/drivers/pcmcia/pxa2xx_base.c
+++ b/drivers/pcmcia/pxa2xx_base.c
@@ -291,7 +291,7 @@ static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev)
skt->nr = ops->first + i;
skt->ops = ops;
skt->socket.owner = ops->owner;
- skt->socket.dev.parent = dev;
+ skt->socket.dev.parent = &dev->dev;
skt->socket.pci_irq = NO_IRQ;
ret = pxa2xx_drv_pcmcia_add_one(skt);
@@ -304,8 +304,8 @@ static int pxa2xx_drv_pcmcia_probe(struct platform_device *dev)
soc_pcmcia_remove_one(&sinfo->skt[i]);
kfree(sinfo);
} else {
- pxa2xx_configure_sockets(dev);
- dev_set_drvdata(dev, sinfo);
+ pxa2xx_configure_sockets(&dev->dev);
+ dev_set_drvdata(&dev->dev, sinfo);
}
return ret;
--
1.6.0.4
--
I'm the slime oozin' out from your TV set...
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
2009-12-15 20:11 [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops Marc Zyngier
@ 2009-12-16 7:58 ` Dominik Brodowski
2009-12-16 8:13 ` Eric Miao
0 siblings, 1 reply; 6+ messages in thread
From: Dominik Brodowski @ 2009-12-16 7:58 UTC (permalink / raw)
To: linux-arm-kernel
On Tue, Dec 15, 2009 at 09:11:21PM +0100, Marc Zyngier wrote:
> Commit d0d26c33b63c7ec10c3fdf9c7ce0aa035f0b3200:
>
> PCMCIA: fix pxa2xx_lubbock modular build error
>
> broke the driver by propagating a pointer to the platform_device
> where a pointer to the generic device was expected, leading to a
> spectacular crash...
>
> Signed-off-by: Marc Zyngier <maz@misterjones.org>
Acked-by: Dominik Brodowski <linux@dominikbrodowski.net>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
2009-12-16 7:58 ` Dominik Brodowski
@ 2009-12-16 8:13 ` Eric Miao
2009-12-16 17:02 ` Dominik Brodowski
0 siblings, 1 reply; 6+ messages in thread
From: Eric Miao @ 2009-12-16 8:13 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 16, 2009 at 3:58 PM, Dominik Brodowski
<linux@dominikbrodowski.net> wrote:
> On Tue, Dec 15, 2009 at 09:11:21PM +0100, Marc Zyngier wrote:
>> Commit d0d26c33b63c7ec10c3fdf9c7ce0aa035f0b3200:
>>
>> PCMCIA: fix pxa2xx_lubbock modular build error
>>
>> broke the driver by propagating a pointer to the platform_device
>> where a pointer to the generic device was expected, leading to a
>> spectacular crash...
>>
>> Signed-off-by: Marc Zyngier <maz@misterjones.org>
> Acked-by: Dominik Brodowski <linux@dominikbrodowski.net>
>
Dominik,
Maybe you can help upstream this, and if you want my Ack, here it is:
Acked-by: Eric Miao <eric.y.miao@gmail.com>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
2009-12-16 8:13 ` Eric Miao
@ 2009-12-16 17:02 ` Dominik Brodowski
2009-12-16 20:11 ` Russell King - ARM Linux
0 siblings, 1 reply; 6+ messages in thread
From: Dominik Brodowski @ 2009-12-16 17:02 UTC (permalink / raw)
To: linux-arm-kernel
Russell,
do you want to take it upstream? If you prefer me doing it, I'll do so
gladly.
On Wed, Dec 16, 2009 at 04:13:21PM +0800, Eric Miao wrote:
> On Wed, Dec 16, 2009 at 3:58 PM, Dominik Brodowski
> <linux@dominikbrodowski.net> wrote:
> > On Tue, Dec 15, 2009 at 09:11:21PM +0100, Marc Zyngier wrote:
> >> Commit d0d26c33b63c7ec10c3fdf9c7ce0aa035f0b3200:
> >>
> >> PCMCIA: fix pxa2xx_lubbock modular build error
> >>
> >> broke the driver by propagating a pointer to the platform_device
> >> where a pointer to the generic device was expected, leading to a
> >> spectacular crash...
> >>
> >> Signed-off-by: Marc Zyngier <maz@misterjones.org>
> > Acked-by: Dominik Brodowski <linux@dominikbrodowski.net>
> >
>
> Dominik,
>
> Maybe you can help upstream this, and if you want my Ack, here it is:
>
> Acked-by: Eric Miao <eric.y.miao@gmail.com>
Best,
Dominik
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
2009-12-16 17:02 ` Dominik Brodowski
@ 2009-12-16 20:11 ` Russell King - ARM Linux
2009-12-17 0:10 ` Dominik Brodowski
0 siblings, 1 reply; 6+ messages in thread
From: Russell King - ARM Linux @ 2009-12-16 20:11 UTC (permalink / raw)
To: linux-arm-kernel
On Wed, Dec 16, 2009 at 06:02:56PM +0100, Dominik Brodowski wrote:
> Russell,
>
> do you want to take it upstream? If you prefer me doing it, I'll do so
> gladly.
I've just added it to my tree.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops
2009-12-16 20:11 ` Russell King - ARM Linux
@ 2009-12-17 0:10 ` Dominik Brodowski
0 siblings, 0 replies; 6+ messages in thread
From: Dominik Brodowski @ 2009-12-17 0:10 UTC (permalink / raw)
To: linux-arm-kernel
Hey,
On Wed, Dec 16, 2009 at 08:11:18PM +0000, Russell King - ARM Linux wrote:
> On Wed, Dec 16, 2009 at 06:02:56PM +0100, Dominik Brodowski wrote:
> > Russell,
> >
> > do you want to take it upstream? If you prefer me doing it, I'll do so
> > gladly.
>
> I've just added it to my tree.
Thanks.
Dominik
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-12-17 0:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-12-15 20:11 [PATCH] pxa/pcmcia: Fix pxa2xx PCMCIA oops Marc Zyngier
2009-12-16 7:58 ` Dominik Brodowski
2009-12-16 8:13 ` Eric Miao
2009-12-16 17:02 ` Dominik Brodowski
2009-12-16 20:11 ` Russell King - ARM Linux
2009-12-17 0:10 ` Dominik Brodowski
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.