Commit 5ca9afdb authored by Vasiliy Kulikov's avatar Vasiliy Kulikov Committed by H. Peter Anvin

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: default avatarVasiliy Kulikov <segoon@openwall.com>
LKML-Reference: <1290104207-31279-1-git-send-email-segoon@openwall.com>
Acked-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@linux.intel.com>
parent 82148d1d
...@@ -159,8 +159,7 @@ static int __init mrst_device_create(void) ...@@ -159,8 +159,7 @@ static int __init mrst_device_create(void)
vrtc_resources[1].start = sfi_mrtc_array[0].irq; vrtc_resources[1].start = sfi_mrtc_array[0].irq;
vrtc_resources[1].end = sfi_mrtc_array[0].irq; vrtc_resources[1].end = sfi_mrtc_array[0].irq;
platform_device_register(&vrtc_device); return platform_device_register(&vrtc_device);
return 0;
} }
module_init(mrst_device_create); module_init(mrst_device_create);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment