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>
This commit is contained in:
@@ -1104,7 +1104,7 @@ static int __devinit yenta_probe (struct pci_dev *dev, const struct pci_device_i
|
||||
/* prepare pcmcia_socket */
|
||||
socket->socket.ops = ¥ta_socket_operations;
|
||||
socket->socket.resource_ops = &pccard_nonstatic_ops;
|
||||
socket->socket.dev.dev = &dev->dev;
|
||||
socket->socket.dev.parent = &dev->dev;
|
||||
socket->socket.driver_data = socket;
|
||||
socket->socket.owner = THIS_MODULE;
|
||||
socket->socket.features = SS_CAP_PAGE_REGS | SS_CAP_PCCARD;
|
||||
|
Reference in New Issue
Block a user