media: imx: imx7_mipi_csis: Acquire reset control without naming it
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Mon, 15 Feb 2021 04:27:26 +0000 (05:27 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 11 Mar 2021 10:59:52 +0000 (11:59 +0100)
The device has a single reset line, there's thus no need to name it
explicitly when calling devm_reset_control_get_exclusive(). Drop the
name in preparation for the removal of the reset-names property in the
DT binding.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Rui Miguel Silva <rmfrfs@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/imx/imx7-mipi-csis.c

index 8cf860544b0a7edce2cf9341cf113d3363406634..36eabab22bfb410d29af5f5e215a591f5d8100d1 100644 (file)
@@ -943,7 +943,7 @@ static int mipi_csis_parse_dt(struct platform_device *pdev,
                state->clk_frequency = DEFAULT_SCLK_CSIS_FREQ;
 
        /* Get MIPI PHY resets */
-       state->mrst = devm_reset_control_get_exclusive(&pdev->dev, "mrst");
+       state->mrst = devm_reset_control_get_exclusive(&pdev->dev, NULL);
        if (IS_ERR(state->mrst))
                return PTR_ERR(state->mrst);