]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
ASoC: samsung: smdk_wm8994: remove redundant of_match_ptr()
authorKrzysztof Kozlowski <krzk@kernel.org>
Wed, 25 Nov 2020 16:44:52 +0000 (17:44 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 26 Nov 2020 13:07:33 +0000 (13:07 +0000)
of_match_device() already handles properly !CONFIG_OF case, so passing
the argument via of_match_ptr() is not needed.

Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Sylwester Nawrocki <snawrocki@kernel.org>
Link: https://lore.kernel.org/r/20201125164452.89239-40-krzk@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/smdk_wm8994.c

index 28d6eb14d7db08fa5ad7f98df4b77c01adc0431f..681b244d531267be577161ffd161e949fb5a4df8 100644 (file)
@@ -170,7 +170,7 @@ static int smdk_audio_probe(struct platform_device *pdev)
                smdk_dai[0].platforms->of_node = smdk_dai[0].cpus->of_node;
        }
 
-       id = of_match_device(of_match_ptr(samsung_wm8994_of_match), &pdev->dev);
+       id = of_match_device(samsung_wm8994_of_match, &pdev->dev);
        if (id)
                *board = *((struct smdk_wm8994_data *)id->data);