1
0
Fork 0

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>
hifive-unleashed-5.1
Vasiliy Kulikov 2010-11-18 21:16:45 +03:00 committed by H. Peter Anvin
parent 82148d1d0b
commit 5ca9afdb9f
1 changed files with 1 additions and 2 deletions

View File

@ -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);