From: Barry Song <21cnbao@gmail.com> Date: Fri, 16 Oct 2009 10:13:38 +0000 (+0800) Subject: ASoC: Fix possible codec_dai->ops NULL pointer problems X-Git-Tag: v2.6.32-rc6~14^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=02a06d3042e208cb74369838b178ca9512192be4;p=pandora-kernel.git ASoC: Fix possible codec_dai->ops NULL pointer problems Some codec DAIs like stac9766, wm9712, wm9713, ad1980 don't register themselves then it loses to the chance to be given a null_dai_ops in snd_soc_register_dai if they have no ops. When functions like soc_pcm_open, soc_pcm_hw_params etc. access the ops field in these DAIs, panic will happen. Signed-off-by: Barry Song <21cnbao@gmail.com> Signed-off-by: Mark Brown --- Reading git-diff-tree failed