mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 17:51:43 +00:00
[media] s5p-mfc: Remove redundant use of of_match_ptr macro
'exynos_mfc_match' is always compiled in. Hence of_match_ptr is unnecessary. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
0425d7963a
commit
a40a138291
@ -1426,7 +1426,7 @@ static void *mfc_get_drv_data(struct platform_device *pdev)
|
|||||||
|
|
||||||
if (pdev->dev.of_node) {
|
if (pdev->dev.of_node) {
|
||||||
const struct of_device_id *match;
|
const struct of_device_id *match;
|
||||||
match = of_match_node(of_match_ptr(exynos_mfc_match),
|
match = of_match_node(exynos_mfc_match,
|
||||||
pdev->dev.of_node);
|
pdev->dev.of_node);
|
||||||
if (match)
|
if (match)
|
||||||
driver_data = (struct s5p_mfc_variant *)match->data;
|
driver_data = (struct s5p_mfc_variant *)match->data;
|
||||||
|
Loading…
Reference in New Issue
Block a user