]> git.hungrycats.org Git - linux/commitdiff
[PCMCIA] Remove write-only socket_dev
authorRussell King <rmk@flint.arm.linux.org.uk>
Sun, 18 Jan 2004 19:14:53 +0000 (19:14 +0000)
committerRussell King <rmk@flint.arm.linux.org.uk>
Sun, 18 Jan 2004 19:14:53 +0000 (19:14 +0000)
No need for a local pointer for the struct device, especially when
it is only ever written.  If necessary, the device can be accessed
using s->parent->dev.dev

drivers/pcmcia/ds.c

index cf451f8c88ef20d1a4c1280ec7da982c3327211f..525249bedb99c7b0870ce050a1cc4afd78463c7c 100644 (file)
@@ -110,7 +110,6 @@ struct pcmcia_bus_socket {
        wait_queue_head_t       queue, request;
        struct work_struct      removal;
        socket_bind_t           *bind;
-       struct device           *socket_dev;
        struct pcmcia_socket    *parent;
 };
 
@@ -874,7 +873,6 @@ static int __devinit pcmcia_bus_add_socket(struct class_device *class_dev)
        init_waitqueue_head(&s->request);
 
        /* initialize data */
-       s->socket_dev = socket->dev.dev;
        INIT_WORK(&s->removal, handle_removal, s);
        s->parent = socket;