treewide: gpio-export: add error handling