intel_scu_ipcutil: fix major device number handling
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Fri, 26 Aug 2011 10:55:46 +0000 (11:55 +0100)
committerMatthew Garrett <mjg@redhat.com>
Mon, 24 Oct 2011 14:52:39 +0000 (16:52 +0200)
commit21893ab24c78ec844cbaffbb7bf11b33cfdea8b4
tree86aab2f5c007eb112331eb928ca9e802aee7bbf4
parent6cb8c13da10855f17110421d9b13db015e11840e
intel_scu_ipcutil: fix major device number handling

We need to save major device number to be able to use it for
unregister_chrdev() in ipc_module_exit().

ipc_module_init() must return 0 on success, not major device number.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/intel_scu_ipcutil.c