cleanup for ram read driver