x86, mrst: Check platform_device_register() return code

platform_device_register() may fail, if so propagate the return
code from mrst_device_create().

Signed-off-by: Vasiliy Kulikov <segoon@openwall.com>
LKML-Reference: <1290104207-31279-1-git-send-email-segoon@openwall.com>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>

authored by Vasiliy Kulikov and committed by H. Peter Anvin 5ca9afdb 82148d1d

+1 -2
+1 -2
arch/x86/platform/mrst/vrtc.c
··· 159 159 vrtc_resources[1].start = sfi_mrtc_array[0].irq; 160 160 vrtc_resources[1].end = sfi_mrtc_array[0].irq; 161 161 162 - platform_device_register(&vrtc_device); 163 - return 0; 162 + return platform_device_register(&vrtc_device); 164 163 } 165 164 166 165 module_init(mrst_device_create);