diff options
author | Vasiliy Kulikov <segoon@openwall.com> | 2010-11-18 18:16:45 (GMT) |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-11-18 21:45:46 (GMT) |
commit | 5ca9afdb9f6a5267927b54de3f42c756e8af7fcd (patch) | |
tree | 3fb2fdf188f6ebf8e577fc1dfd0829d16af4925b /arch/x86/platform | |
parent | 82148d1d0b2f369851f2dff5088f7840f9f16abf (diff) | |
download | linux-5ca9afdb9f6a5267927b54de3f42c756e8af7fcd.tar.xz |
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>
Diffstat (limited to 'arch/x86/platform')
-rw-r--r-- | arch/x86/platform/mrst/vrtc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/platform/mrst/vrtc.c b/arch/x86/platform/mrst/vrtc.c index 4d3f770..32cd7ed 100644 --- a/arch/x86/platform/mrst/vrtc.c +++ b/arch/x86/platform/mrst/vrtc.c @@ -159,8 +159,7 @@ static int __init mrst_device_create(void) vrtc_resources[1].start = sfi_mrtc_array[0].irq; vrtc_resources[1].end = sfi_mrtc_array[0].irq; - platform_device_register(&vrtc_device); - return 0; + return platform_device_register(&vrtc_device); } module_init(mrst_device_create); |