diff --git a/include/sound/soc.h b/include/sound/soc.h
index 7287c6e0cf711f312d130cfca10edc26e0449dd0..b9ee2201835252a2a45e6bc369b7cf3304e16d7c 100644
--- a/include/sound/soc.h
+++ b/include/sound/soc.h
@@ -701,7 +701,6 @@ struct snd_soc_codec {
 	struct snd_soc_card *card;
 	struct list_head list;
 	struct list_head card_list;
-	int num_dai;
 
 	/* runtime */
 	struct snd_ac97 *ac97;  /* for ad-hoc ac97 devices */
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c
index 0a2c0720fc2da6a349a8d9a16320d3f6498b2c3c..a675eec647561f9be7e083308948d96ad763cc87 100644
--- a/sound/soc/soc-core.c
+++ b/sound/soc/soc-core.c
@@ -4277,7 +4277,6 @@ int snd_soc_register_codec(struct device *dev,
 	codec->dapm.stream_event = codec_drv->stream_event;
 	codec->dev = dev;
 	codec->driver = codec_drv;
-	codec->num_dai = num_dai;
 	codec->component.val_bytes = codec_drv->reg_word_size;
 	mutex_init(&codec->mutex);