ASoC: mediatek: mt2701: fix some error handling in probe

The check for if the "afe" allocation failed was too late and there
wasn't a check for "afe->platform_priv".

Fixes: 43a6a7e71063 ('ASoC: mediatek: add mt2701 platform driver implementation.')
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Garlic Tseng <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
1 file changed