mirror of
https://github.com/adulau/aha.git
synced 2024-12-26 10:46:11 +00:00
PCMCIA: fix pxa2xx_lubbock modular build error
Commit d0d26c33b6
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>
Acked-by: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
This commit is contained in:
parent
d93626e861
commit
a7a5ac58df
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue