Commit 2c9a0773 authored by Patrick Mochel's avatar Patrick Mochel

Doh!

struct device has no ->sysdata
and ->device should be ->dev
 
parent a0fbd4b2
...@@ -279,8 +279,7 @@ int cb_alloc(socket_info_t * s) ...@@ -279,8 +279,7 @@ int cb_alloc(socket_info_t * s)
pci_readw(dev, PCI_DEVICE_ID, &dev->device); pci_readw(dev, PCI_DEVICE_ID, &dev->device);
dev->hdr_type = hdr & 0x7f; dev->hdr_type = hdr & 0x7f;
dev->dev.parent = bus->device; dev->dev.parent = bus->dev;
dev->dev.sysdata = bus->sysdata;
strcpy(dev->dev.name, dev->name); strcpy(dev->dev.name, dev->name);
strcpy(dev->dev.bus_id, dev->slot_name); strcpy(dev->dev.bus_id, dev->slot_name);
device_register(&dev->dev); device_register(&dev->dev);
......
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