x86, mrst: Check platform_device_register() return code