arch-flo-junk/packages/linux-asus-flo/13_Fix-renamed-symbol-in-drivers-qcom-hidma_mgmt.c.patch

34 lines
1.1 KiB
Diff

From 5bd38905f6dd829c32ca3c33647344816060fc34 Mon Sep 17 00:00:00 2001
From: Davide Depau <davide@depau.eu>
Date: Sun, 3 Mar 2019 14:24:51 +0100
Subject: [PATCH] Fix renamed of_dma_configure symbol in drivers/dma/qcom
---
drivers/dma/qcom/hidma_mgmt.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/dma/qcom/hidma_mgmt.c b/drivers/dma/qcom/hidma_mgmt.c
index f847d32c..a2ff7020 100644
--- a/drivers/dma/qcom/hidma_mgmt.c
+++ b/drivers/dma/qcom/hidma_mgmt.c
@@ -19,6 +19,7 @@
#include <linux/property.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
+#include <linux/of_device.h>
#include <linux/module.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
@@ -378,7 +379,8 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np)
}
of_node_get(child);
new_pdev->dev.of_node = child;
- of_dma_configure(&new_pdev->dev, child);
+ of_dma_configure_masks(&new_pdev->dev, child);
+ of_dma_configure_ops(&new_pdev->dev, child);
/*
* It is assumed that calling of_msi_configure is safe on
* platforms with or without MSI support.
--
2.20.1