PCMCIA: soc_common: remove 'dev' member from soc_pcmcia_socket
Russell King - ARM Linux [Sun, 29 Mar 2009 21:12:34 +0000 (22:12 +0100)]
The 'dev' member is now only ever written, so we can safely remove it.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Dominik Brodowski <linux@dominikbrodowski.net>

drivers/pcmcia/pxa2xx_base.c
drivers/pcmcia/sa11xx_base.c
drivers/pcmcia/soc_common.h

index c9c104b..7f61b62 100644 (file)
@@ -288,7 +288,6 @@ int __pxa2xx_drv_pcmcia_probe(struct device *dev)
 
                skt->nr = ops->first + i;
                skt->irq = NO_IRQ;
-               skt->dev = dev;
                skt->ops = ops;
                skt->socket.owner = ops->owner;
                skt->socket.dev.parent = dev;
index 4db8149..ac99872 100644 (file)
@@ -236,7 +236,6 @@ int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops,
 
                skt->nr = first + i;
                skt->irq = NO_IRQ;
-               skt->dev = dev;
                skt->ops = ops;
                skt->socket.owner = ops->owner;
                skt->socket.dev.parent = dev;
index f7533dc..4fb06f7 100644 (file)
@@ -30,7 +30,6 @@ struct soc_pcmcia_socket {
        /*
         * Info from low level handler
         */
-       struct device           *dev;
        unsigned int            nr;
        unsigned int            irq;