Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 708ec024 authored by Xiubo Li's avatar Xiubo Li Committed by Mark Brown
Browse files

ASoC: simple-card: fix a bug where cinfo will be NULL before using it



If the dt is not used, the cinfo will be always NULL before using it.

Signed-off-by: default avatarXiubo Li <Li.Xiubo@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 8c0b8230
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -213,8 +213,8 @@ static int asoc_simple_card_probe(struct platform_device *pdev)
			}
		}
	} else {
		cinfo->snd_card.dev = &pdev->dev;
		cinfo = pdev->dev.platform_data;
		cinfo->snd_card.dev = &pdev->dev;
	}

	if (!cinfo) {