This avoids a dependency to errno in device driver code.
This patch is a part of the BSP source reorganization. Update #3285.