mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a regression from r200554, which broke fdc(4) attachment to acpi(4).
I removed too many lines and a wrong pointer was accidentally passed down. Tested by: Scott Allendorf (scott-allendorf at uiowa dot edu), kib MFC after: 3 days
This commit is contained in:
parent
82c00be8ee
commit
4affd62610
1 changed files with 3 additions and 1 deletions
|
|
@ -96,6 +96,7 @@ fdc_acpi_attach(device_t dev)
|
|||
{
|
||||
struct fdc_data *sc;
|
||||
ACPI_BUFFER buf;
|
||||
ACPI_OBJECT *obj;
|
||||
device_t bus;
|
||||
int error;
|
||||
|
||||
|
|
@ -131,7 +132,8 @@ fdc_acpi_attach(device_t dev)
|
|||
}
|
||||
|
||||
/* Add fd child devices as specified. */
|
||||
error = fdc_acpi_probe_children(bus, dev, buf.Pointer);
|
||||
obj = buf.Pointer;
|
||||
error = fdc_acpi_probe_children(bus, dev, obj->Buffer.Pointer);
|
||||
|
||||
out:
|
||||
if (buf.Pointer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue