Skip to content

Commit

Permalink
x86, mrst: Check platform_device_register() return code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasiliy Kulikov authored and H. Peter Anvin committed Nov 18, 2010
1 parent 82148d1 commit 5ca9afd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions arch/x86/platform/mrst/vrtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

0 comments on commit 5ca9afd

Please sign in to comment.