Function Driver unload issues on Win Xp SP2

Hi,

My 1394 function driver is working properly for Win 2000 & Win XP, but
in WinXPSP2 it is creating some unloading problems.

I have checked using debugger that even after unload is called by the
Pnp manager, the driver is still not unloaded, after removing the
device. I am handling IRP_MN_SURPRISE_REMOVAL & IRP_MN_REMOVE_DEVICE
and I can see them in the debugger.

On reinserting the device I get Error code 38 (previous instance of
driver not unloaded).

Any suggestions will be appreciated.

Regards,
Hemant