summaryrefslogtreecommitdiffstats
path: root/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas
diff options
context:
space:
mode:
authorVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-05-24 03:41:38 +0300
committerVladimir Barinov <vladimir.barinov@cogentembedded.com>2017-05-24 03:41:38 +0300
commitfe37f51140e004fb78df093a0c8703bcaa2b78e4 (patch)
tree6cb08754055a0710ad63a3c1571df51df4ea7b6f /meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas
parentbf371db59375cb6c3162013cedef294cb33cd715 (diff)
LVDS cameras enumeration fix
GPIO needs to be released by deserializer
Diffstat (limited to 'meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas')
-rw-r--r--meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch8
1 files changed, 4 insertions, 4 deletions
diff --git a/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch b/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch
index 07fd725..3568d6c 100644
--- a/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch
+++ b/meta-rcar-gen3-adas/recipes-kernel/linux/linux-renesas/0030-Gen3-LVDS-cameras.patch
@@ -4715,7 +4715,7 @@ index 0000000..dc6ad86
+};
diff --git a/drivers/media/i2c/soc_camera/ti954_ti9x3.c b/drivers/media/i2c/soc_camera/ti954_ti9x3.c
new file mode 100644
-index 0000000..81babce
+index 0000000..c325876
--- /dev/null
+++ b/drivers/media/i2c/soc_camera/ti954_ti9x3.c
@@ -0,0 +1,414 @@
@@ -4983,7 +4983,7 @@ index 0000000..81babce
+
+ priv->xtal_gpio = of_get_gpio(np, 0);
+ if (priv->xtal_gpio > 0) {
-+ err = gpio_request_one(priv->xtal_gpio, GPIOF_OUT_INIT_LOW, dev_name(&client->dev));
++ err = devm_gpio_request_one(&client->dev, priv->xtal_gpio, GPIOF_OUT_INIT_LOW, dev_name(&client->dev));
+ if (err)
+ dev_err(&client->dev, "cannot request XTAL gpio %d: %d\n", priv->xtal_gpio, err);
+ else
@@ -5135,7 +5135,7 @@ index 0000000..81babce
+MODULE_LICENSE("GPL");
diff --git a/drivers/media/i2c/soc_camera/ti964_ti9x3.c b/drivers/media/i2c/soc_camera/ti964_ti9x3.c
new file mode 100644
-index 0000000..e66e639
+index 0000000..b293466
--- /dev/null
+++ b/drivers/media/i2c/soc_camera/ti964_ti9x3.c
@@ -0,0 +1,382 @@
@@ -5376,7 +5376,7 @@ index 0000000..e66e639
+
+ pwen = of_get_gpio(np, 0);
+ if (pwen > 0) {
-+ err = gpio_request_one(pwen, GPIOF_OUT_INIT_HIGH, dev_name(&client->dev));
++ err = devm_gpio_request_one(&client->dev, pwen, GPIOF_OUT_INIT_HIGH, dev_name(&client->dev));
+ if (err)
+ dev_err(&client->dev, "cannot request PWEN gpio %d: %d\n", pwen, err);
+ else