Also moved the code from the generated app_registerRecordDeviceDriver.cpp file to iocsh/registryCommon.*