Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272008
b: refs/heads/master
c: 21893ab
h: refs/heads/master
v: v3
  • Loading branch information
Kirill A. Shutemov authored and Matthew Garrett committed Oct 24, 2011
1 parent f71cc64 commit 424416f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6cb8c13da10855f17110421d9b13db015e11840e
refs/heads/master: 21893ab24c78ec844cbaffbb7bf11b33cfdea8b4
8 changes: 6 additions & 2 deletions trunk/drivers/platform/x86/intel_scu_ipcutil.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/init.h>
#include <asm/intel_scu_ipc.h>

static u32 major;
static int major;

#define MAX_FW_SIZE 264192

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 424416f

Please sign in to comment.