[alsa-devel] [PATCH 6/7] ASoC: Samsung: smdk_wm8994: Fix build error
Sachin Kamat
sachin.kamat at linaro.org
Wed Jan 22 07:13:32 CET 2014
Fixes the following build error when OF is not defined:
sound/soc/samsung/smdk_wm8994.c:191:23: error: ‘samsung_wm8994_of_match’ undeclared (first use in this function)
Signed-off-by: Sachin Kamat <sachin.kamat at linaro.org>
---
sound/soc/samsung/smdk_wm8994.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c
index b072bd107b31..1d9641cc172a 100644
--- a/sound/soc/samsung/smdk_wm8994.c
+++ b/sound/soc/samsung/smdk_wm8994.c
@@ -188,7 +188,7 @@ static int smdk_audio_probe(struct platform_device *pdev)
smdk_dai[0].platform_of_node = smdk_dai[0].cpu_of_node;
}
- id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
+ id = of_match_device(of_match_ptr(samsung_wm8994_of_match), &pdev->dev);
if (id)
*board = *((struct smdk_wm8994_data *)id->data);
--
1.7.9.5
More information about the Alsa-devel
mailing list