Unregistering a Component

If the registered component is a driver, a kernel extension or a subsystem that can be stopped. Unregister your component at stop or unload time.

A component cannot be unregistered from the framework if it has subcomponents. Therefore, subcomponents must be unregistered first. Moreover, the memory trace mode must be stopped.

ras_control(rasb_eth, RASCT_SET_MEMTRC_SUSPEND, 0, 0);  /* might need to be serialized */
ras_unregister(rasb_eth);
The ras_unregister call must be done from the process environment. No other driver or subsystem operations should occur during ras_unregister calls. For more information, see the ras_unregister kernel service.