intel_scu_ipc: Oops/crash fixes
authorSreedhara DS <sreedhara.ds@intel.com>
Mon, 19 Jul 2010 08:37:42 +0000 (09:37 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 19 Jul 2010 20:17:37 +0000 (13:17 -0700)
commitb4fd4f890bca2291a12bb0807027db40f929a82d
tree12d55f40767af5841778b858e3b1085d18bb130c
parenta9f7f2e74ae0e6a801a2433dc8e9124d73da0cb4
intel_scu_ipc: Oops/crash fixes

- fix reversing of command/sub arguments
- fix a crash if the i2c interface is called before the device is found

Signed-off-by: Sreedhara DS <sreedhara.ds@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/platform/x86/intel_scu_ipc.c