diff options
| author | Vasiliy Kulikov <segoon@openwall.com> | 2010-11-18 13:16:45 -0500 |
|---|---|---|
| committer | H. Peter Anvin <hpa@linux.intel.com> | 2010-11-18 16:45:46 -0500 |
| commit | 5ca9afdb9f6a5267927b54de3f42c756e8af7fcd (patch) | |
| tree | 3fb2fdf188f6ebf8e577fc1dfd0829d16af4925b | |
| parent | 82148d1d0b2f369851f2dff5088f7840f9f16abf (diff) | |
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>
| -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 4d3f770456f7..32cd7edd71a0 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) | |||
| 159 | vrtc_resources[1].start = sfi_mrtc_array[0].irq; | 159 | vrtc_resources[1].start = sfi_mrtc_array[0].irq; |
| 160 | vrtc_resources[1].end = sfi_mrtc_array[0].irq; | 160 | vrtc_resources[1].end = sfi_mrtc_array[0].irq; |
| 161 | 161 | ||
| 162 | platform_device_register(&vrtc_device); | 162 | return platform_device_register(&vrtc_device); |
| 163 | return 0; | ||
| 164 | } | 163 | } |
| 165 | 164 | ||
| 166 | module_init(mrst_device_create); | 165 | module_init(mrst_device_create); |
