- 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:
@@ -910,9 +910,6 @@ close_hook (void* cookie)
|
|||||||
WRITE_8( Command , 0 );
|
WRITE_8( Command , 0 );
|
||||||
WRITE_16( IMR , 0 );
|
WRITE_16( IMR , 0 );
|
||||||
|
|
||||||
// mark this device as closed
|
|
||||||
gDeviceOpenMask &= ~(1L << data->device_id);
|
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -941,6 +938,9 @@ free_hook (void* cookie)
|
|||||||
//Finally, free the cookie
|
//Finally, free the cookie
|
||||||
free( data );
|
free( data );
|
||||||
|
|
||||||
|
// mark this device as closed
|
||||||
|
gDeviceOpenMask &= ~(1L << data->device_id);
|
||||||
|
|
||||||
//Put the pci module
|
//Put the pci module
|
||||||
put_module( B_PCI_MODULE_NAME );
|
put_module( B_PCI_MODULE_NAME );
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user