Commit 393f4a7b authored by Russell King's avatar Russell King

[PCMCIA] Remove write-only socket_dev

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
parent 64baa00b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment