[SRU] [jammy:linux-xilinx-zynqmp 1/1] UBUNTU: SAUCE: xilinx-mv-camera-sensor-module: Update imx547 driver

Portia Stephens portia.stephens at canonical.com
Mon Aug 5 15:23:41 UTC 2024


BugLink: https://bugs.launchpad.net/bugs/2076108

Updated the out-of-tree xilinx-mv-camera-sensor-module driver.

(cherry-picked from git at github.com:Xilinx/mv-camera-sensor-module.git v0.3)
Signed-off-by: Portia Stephens <portia.stephens at canonical.com>
---
 ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c b/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
index fc4f4a44b5cd..094dfc6d7e86 100644
--- a/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
+++ b/ubuntu/staging/xilinx-mv-camera-sensor-module/imx547.c
@@ -1037,7 +1037,7 @@ static int imx547_probe(struct i2c_client *client)
     }
 
     /* initialize gt trx reset gpio */
-    imx547->gt_trx_reset_gpio = gpiod_get_index_optional(&client->dev, "reset",
+    imx547->gt_trx_reset_gpio = devm_gpiod_get_index_optional(&client->dev, "reset",
                                 0, GPIOD_OUT_HIGH);
     if (IS_ERR(imx547->gt_trx_reset_gpio)) {
         if (PTR_ERR(imx547->gt_trx_reset_gpio) != -EPROBE_DEFER)
@@ -1047,7 +1047,7 @@ static int imx547_probe(struct i2c_client *client)
     }
 
     /* initialize pipe reset gpio */
-    imx547->pipe_reset_gpio = gpiod_get_index_optional(&client->dev, "reset",
+    imx547->pipe_reset_gpio = devm_gpiod_get_index_optional(&client->dev, "reset",
                               1, GPIOD_OUT_HIGH);
     if (IS_ERR(imx547->pipe_reset_gpio)) {
         if (PTR_ERR(imx547->pipe_reset_gpio) != -EPROBE_DEFER)
-- 
2.34.1




More information about the kernel-team mailing list