aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch')
-rw-r--r--target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch b/target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch
new file mode 100644
index 0000000000..a870692906
--- /dev/null
+++ b/target/linux/ipq806x/patches-5.4/0063-3-tsens-fix-kernel-4_19.patch
@@ -0,0 +1,20 @@
+--- a/drivers/thermal/qcom/tsens-common.c
++++ b/drivers/thermal/qcom/tsens-common.c
+@@ -128,6 +128,7 @@ int __init init_common(struct tsens_devi
+ {
+ void __iomem *base;
+ struct resource *res;
++ resource_size_t size;
+ struct platform_device *op = of_find_device_by_node(tmdev->dev->of_node);
+
+ if (!op)
+@@ -142,7 +143,8 @@ int __init init_common(struct tsens_devi
+ }
+
+ res = platform_get_resource(op, IORESOURCE_MEM, 0);
+- base = devm_ioremap_resource(&op->dev, res);
++ size = resource_size(res);
++ base = devm_ioremap(&op->dev, res->start, size);
+ if (IS_ERR(base))
+ return PTR_ERR(base);
+