- reverted part of my last commit, as the other drivers mark the device as

closed in device_free(), not device_close(), too. Don't know why yet, but
  I'm pretty sure I should follow their example...


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17730 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2006-06-05 18:41:17 +00:00
parent 66cd06582c
commit ef1974cb9d

View File

@ -910,9 +910,6 @@ close_hook (void* cookie)
WRITE_8( Command , 0 );
WRITE_16( IMR , 0 );
// mark this device as closed
gDeviceOpenMask &= ~(1L << data->device_id);
return B_OK;
}
@ -941,6 +938,9 @@ free_hook (void* cookie)
//Finally, free the cookie
free( data );
// mark this device as closed
gDeviceOpenMask &= ~(1L << data->device_id);
//Put the pci module
put_module( B_PCI_MODULE_NAME );