From: Dominik Brodowski Date: Tue, 11 Jan 2005 11:22:20 +0000 (-0800) Subject: [PATCH] pcmcia: add a pointer to client in struct pcmcia_device X-Git-Tag: v2.6.11-rc1~38 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=00bfce19fba26c176381ddde535e5d85efdeea19;p=history.git [PATCH] pcmcia: add a pointer to client in struct pcmcia_device Add a pointer to the "client" structure to struct pcmcia_device. Signed-off-by: Dominik Brodowski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/pcmcia/ds.c b/drivers/pcmcia/ds.c index 77adb5f06185..107a48ba4ac8 100644 --- a/drivers/pcmcia/ds.c +++ b/drivers/pcmcia/ds.c @@ -704,6 +704,7 @@ static int bind_request(struct pcmcia_bus_socket *s, bind_info_t *bind_info) p_dev->socket = s->parent; p_dev->device_no = (s->device_count++); p_dev->func = bind_info->function; + p_dev->client = client; p_dev->dev.bus = &pcmcia_bus_type; p_dev->dev.parent = s->parent->dev.dev; diff --git a/include/pcmcia/ds.h b/include/pcmcia/ds.h index 3f1e4ccbb31f..ba49e8bc7abd 100644 --- a/include/pcmcia/ds.h +++ b/include/pcmcia/ds.h @@ -128,6 +128,7 @@ typedef struct dev_link_t { struct pcmcia_socket; +struct client_t; extern struct bus_type pcmcia_bus_type; @@ -158,6 +159,7 @@ struct pcmcia_device { /* deprecated, a cleaned up version will be moved into this struct soon */ dev_link_t *instance; + struct client_t *client; struct device dev; };