From: tip-bot for Vasiliy Kulikov <segoon@openwall.com>
To: linux-tip-commits@vger.kernel.org
Cc: alan@linux.intel.com, linux-kernel@vger.kernel.org,
hpa@zytor.com, mingo@redhat.com, segoon@openwall.com,
tglx@linutronix.de, hpa@linux.intel.com
Subject: [tip:x86/platform] x86, mrst: Check platform_device_register() return code
Date: Thu, 18 Nov 2010 21:49:13 GMT [thread overview]
Message-ID: <tip-5ca9afdb9f6a5267927b54de3f42c756e8af7fcd@git.kernel.org> (raw)
In-Reply-To: <1290104207-31279-1-git-send-email-segoon@openwall.com>
Commit-ID: 5ca9afdb9f6a5267927b54de3f42c756e8af7fcd
Gitweb: http://git.kernel.org/tip/5ca9afdb9f6a5267927b54de3f42c756e8af7fcd
Author: Vasiliy Kulikov <segoon@openwall.com>
AuthorDate: Thu, 18 Nov 2010 21:16:45 +0300
Committer: H. Peter Anvin <hpa@linux.intel.com>
CommitDate: Thu, 18 Nov 2010 13:45:46 -0800
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>
---
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);
prev parent reply other threads:[~2010-11-18 21:49 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-18 18:16 [PATCH 1/4] x86: platform: mrst: check " Vasiliy Kulikov
2010-11-18 18:18 ` Alan Cox
2010-11-18 18:44 ` Vasiliy Kulikov
2010-11-18 20:18 ` Alan Cox
2010-11-18 21:27 ` Thomas Gleixner
2010-11-18 20:19 ` Alan Cox
2010-11-18 21:49 ` tip-bot for Vasiliy Kulikov [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=tip-5ca9afdb9f6a5267927b54de3f42c756e8af7fcd@git.kernel.org \
--to=segoon@openwall.com \
--cc=alan@linux.intel.com \
--cc=hpa@linux.intel.com \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-tip-commits@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=tglx@linutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome