]> git.karo-electronics.de Git - linux-beck.git/commit
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)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 6 Apr 2011 14:15:23 +0000 (23:15 +0900)
commit0ed625b2f2751c249417bd28694e37ef48eb5fbb
tree36268bb4b38c46b5ff5c4da1b25ad467456eea2b
parent83a3fd3cf0bfdadfdfc633f6437f9121e28252b9
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>
drivers/staging/intel_sst/intel_sst_drv_interface.c
drivers/staging/intel_sst/intelmid.c