sst: make register_sst_card more self-contained
authorLu Guanqun <guanqun.lu@intel.com>
Wed, 6 Apr 2011 02:20:42 +0000 (10:20 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 19:51:58 +0000 (12:51 -0700)
commit31dea7385174596f4369f71c712f1d1006a3fa05
tree2bdfe54da73c3f1e6be621d524ebd4b7737f2dbb
parentfb03d4fc6c9bc4bf509221101639cde1b8330405
sst: make register_sst_card more self-contained

register_sst_card is used in ASoC code with field `scard_ops` being NULL.
Without this patch, there will be NULL dereference.

Signed-off-by: Lu Guanqun <guanqun.lu@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/intel_sst/intel_sst_drv_interface.c
drivers/staging/intel_sst/intelmid.c