diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-12 11:00:10 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-02-07 13:37:11 -0500 |
commit | 873733188a019acdb7fa253011cbdc0a8afd97f3 (patch) | |
tree | 99828bd5db2f183e1b2d2204dc2c94bd1f8fdbbb /drivers/pcmcia/i82092.c | |
parent | 31b9025aa0f89b392077db3f87458fd46bcc4f58 (diff) |
Driver core: convert pcmcia code to use struct device
Converts from using struct "class_device" to "struct device" making
everything show up properly in /sys/devices/ with symlinks from the
/sys/class directory.
Cc: <linux-pcmcia@lists.infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pcmcia/i82092.c')
-rw-r--r-- | drivers/pcmcia/i82092.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pcmcia/i82092.c b/drivers/pcmcia/i82092.c index c2ea07aa7a12..df21e2d16f87 100644 --- a/drivers/pcmcia/i82092.c +++ b/drivers/pcmcia/i82092.c | |||
@@ -161,7 +161,7 @@ static int __devinit i82092aa_pci_probe(struct pci_dev *dev, const struct pci_de | |||
161 | pci_set_drvdata(dev, &sockets[i].socket); | 161 | pci_set_drvdata(dev, &sockets[i].socket); |
162 | 162 | ||
163 | for (i = 0; i<socket_count; i++) { | 163 | for (i = 0; i<socket_count; i++) { |
164 | sockets[i].socket.dev.dev = &dev->dev; | 164 | sockets[i].socket.dev.parent = &dev->dev; |
165 | sockets[i].socket.ops = &i82092aa_operations; | 165 | sockets[i].socket.ops = &i82092aa_operations; |
166 | sockets[i].socket.resource_ops = &pccard_nonstatic_ops; | 166 | sockets[i].socket.resource_ops = &pccard_nonstatic_ops; |
167 | ret = pcmcia_register_socket(&sockets[i].socket); | 167 | ret = pcmcia_register_socket(&sockets[i].socket); |