forked from lede-project/source
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
1,569 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
target/linux/ipq806x/patches-4.4/309-clk-qcom-gcc-msm8960-add-child-devices-support.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 856371ca1561ca9b3280cc323ff296c7c5e1fa93 Mon Sep 17 00:00:00 2001 | ||
From: dissent1 <be.dissent+github@gmail.com> | ||
Date: Tue, 22 Nov 2016 17:37:56 +0300 | ||
Subject: [PATCH] Add files via upload | ||
|
||
--- | ||
drivers/clk/qcom/gcc-ipq806x.c | 8 ++++++++ | ||
1 file changed, 8 insertions(+) | ||
|
||
diff --git a/drivers/clk/qcom/gcc-ipq806x.c b/drivers/clk/qcom/gcc-ipq806x.c | ||
index 16fc64c..da5f43b 100644 | ||
--- a/drivers/clk/qcom/gcc-ipq806x.c | ||
+++ b/drivers/clk/qcom/gcc-ipq806x.c | ||
@@ -3025,6 +3025,7 @@ static int gcc_ipq806x_probe(struct platform_device *pdev) | ||
{ | ||
struct clk *clk; | ||
struct device *dev = &pdev->dev; | ||
+ struct platform_device *tsens; | ||
struct regmap *regmap; | ||
int ret; | ||
|
||
@@ -3055,6 +3056,13 @@ static int gcc_ipq806x_probe(struct platform_device *pdev) | ||
regmap_write(regmap, 0x3cf8, 8); | ||
regmap_write(regmap, 0x3d18, 8); | ||
|
||
+ tsens = platform_device_register_data(&pdev->dev, "qcom-tsens", -1, | ||
+ NULL, 0); | ||
+ if (IS_ERR(tsens)) | ||
+ return PTR_ERR(tsens); | ||
+ | ||
+ platform_set_drvdata(pdev, tsens); | ||
+ | ||
return 0; | ||
} | ||
|
Oops, something went wrong.