From 424416f077a0524722b54ae4b03e4119027eb197 Mon Sep 17 00:00:00 2001 From: "Kirill A. Shutemov" Date: Fri, 26 Aug 2011 11:55:46 +0100 Subject: [PATCH] --- yaml --- r: 272008 b: refs/heads/master c: 21893ab24c78ec844cbaffbb7bf11b33cfdea8b4 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/drivers/platform/x86/intel_scu_ipcutil.c | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index ae46da7cc964..3be88aabf4bc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 6cb8c13da10855f17110421d9b13db015e11840e +refs/heads/master: 21893ab24c78ec844cbaffbb7bf11b33cfdea8b4 diff --git a/trunk/drivers/platform/x86/intel_scu_ipcutil.c b/trunk/drivers/platform/x86/intel_scu_ipcutil.c index b93a03259c16..2d0f9136ea9a 100644 --- a/trunk/drivers/platform/x86/intel_scu_ipcutil.c +++ b/trunk/drivers/platform/x86/intel_scu_ipcutil.c @@ -24,7 +24,7 @@ #include #include -static u32 major; +static int major; #define MAX_FW_SIZE 264192 @@ -117,7 +117,11 @@ static const struct file_operations scu_ipc_fops = { static int __init ipc_module_init(void) { - return register_chrdev(0, "intel_mid_scu", &scu_ipc_fops); + major = register_chrdev(0, "intel_mid_scu", &scu_ipc_fops); + if (major < 0) + return major; + + return 0; } static void __exit ipc_module_exit(void)