[alsa-devel] [PATCH 6/7] ASoC: Samsung: smdk_wm8994: Fix build error
Takashi Iwai
tiwai at suse.de
Wed Jan 22 07:57:16 CET 2014
At Wed, 22 Jan 2014 11:43:32 +0530,
Sachin Kamat wrote:
>
> 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)
We can just remove the #ifdef CONFIG_OF, instead?
The compiler should be clever enough to drop the actually unused
static variables after optimization.
Takashi
>
> 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