]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Driver core: more fallout from class_device changes for pcmcia
authorManuel Lauss <mano@roarinelk.homelinux.net>
Wed, 21 Feb 2007 13:47:20 +0000 (14:47 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 23 Feb 2007 22:52:09 +0000 (14:52 -0800)
More fallout from the PCMCIA class_device changes.

The first hunk is run-tested on SH-4, the others are converted
in the spirit of the original conversion.

Signed-off-by: Manuel Lauss <mano@roarinelk.homelinux.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pcmcia/hd64465_ss.c
drivers/pcmcia/m32r_cfc.c
drivers/pcmcia/m8xx_pcmcia.c
drivers/pcmcia/omap_cf.c
drivers/pcmcia/rsrc_mgr.c
drivers/pcmcia/vrc4171_card.c

index caca0dc9d30f74f4d05adc50444e927a48e202a9..f2e810f53c81ca67b172e7b4789b60d9b2d3b473 100644 (file)
@@ -907,7 +907,7 @@ static int __init init_hs(void)
 
        for (i=0; i<HS_MAX_SOCKETS; i++) {
                unsigned int ret;
-               hs_sockets[i].socket.dev.dev = &hd64465_device.dev;             
+               hs_sockets[i].socket.dev.parent = &hd64465_device.dev;
                hs_sockets[i].number = i;
                ret = pcmcia_register_socket(&hs_sockets[i].socket);
                if (ret && i)
index e4a94108aab9578b0897510c6bc6e9a5196e1b5a..91da15b5a81ea0e3df861a7923fae76b9538faea 100644 (file)
@@ -760,7 +760,7 @@ static int __init init_m32r_pcc(void)
        /* Set up interrupt handler(s) */
 
        for (i = 0 ; i < pcc_sockets ; i++) {
-               socket[i].socket.dev.dev = &pcc_device.dev;
+               socket[i].socket.dev.parent = &pcc_device.dev;
                socket[i].socket.ops = &pcc_operations;
                socket[i].socket.resource_ops = &pccard_nonstatic_ops;
                socket[i].socket.owner = THIS_MODULE;
index d059c9196172330ca02b307bc6ea51236fa73f0b..9721ed7bf5023e704726af89073a51e9e54a85b7 100644 (file)
@@ -1321,7 +1321,7 @@ static int __init m8xx_init(void)
                socket[i].socket.ops = &m8xx_services;
                socket[i].socket.resource_ops = &pccard_iodyn_ops;
                socket[i].socket.cb_dev = NULL;
-               socket[i].socket.dev.dev = &m8xx_device.dev;
+               socket[i].socket.dev.parent = &m8xx_device.dev;
        }
 
        for (i = 0; i < PCMCIA_SOCKETS_NO; i++)
index 76f7cbc62a8b95311ccc52ad610b45fecb39ff79..d77f75129f8ab1fde2cd090c2db0c4e926fc920e 100644 (file)
@@ -291,7 +291,7 @@ static int __devinit omap_cf_probe(struct device *dev)
                omap_cf_present() ? "present" : "(not present)");
 
        cf->socket.owner = THIS_MODULE;
-       cf->socket.dev.dev = dev;
+       cf->socket.dev.parent = dev;
        cf->socket.ops = &omap_cf_ops;
        cf->socket.resource_ops = &pccard_static_ops;
        cf->socket.features = SS_CAP_PCCARD | SS_CAP_STATIC_MAP
index 81dfc2cac2b4f722bd84e9cf121695ad23083099..ce2226273aaa72fa4f55b8d5d718c9014a231602 100644 (file)
@@ -232,7 +232,7 @@ static struct resource *iodyn_find_io_region(unsigned long base, int num,
                unsigned long align, struct pcmcia_socket *s)
 {
        struct resource *res = make_resource(0, num, IORESOURCE_IO,
-                                            s->dev.class_id);
+                                            s->dev.bus_id);
        struct pcmcia_align_data data;
        unsigned long min = base;
        int ret;
index 206e26c918076bd578497429b7c1788997a0f661..eee2f1cb213c76e35726b6c09df0eed9d6db060e 100644 (file)
@@ -596,7 +596,7 @@ static int __devinit vrc4171_add_sockets(void)
                }
 
                sprintf(socket->name, "NEC VRC4171 Card Slot %1c", 'A' + slot);
-               socket->pcmcia_socket.dev.dev = &vrc4171_card_device.dev;
+               socket->pcmcia_socket.dev.parent = &vrc4171_card_device.dev;
                socket->pcmcia_socket.ops = &vrc4171_pccard_operations;
                socket->pcmcia_socket.owner = THIS_MODULE;