]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
serial: 8250_dw: Use reset array API to get resets
authorHal Feng <hal.feng@starfivetech.com>
Tue, 4 Jun 2024 08:47:28 +0000 (16:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Jun 2024 14:09:10 +0000 (16:09 +0200)
Some SoCs like StarFive JH7110 require two or more resets.
So change to use the reset array API to get resets.

Signed-off-by: Hal Feng <hal.feng@starfivetech.com>
Link: https://lore.kernel.org/r/20240604084729.57239-3-hal.feng@starfivetech.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_dw.c

index fb809e32c6ae283c2b7e25839ec206c4a903cb5a..ab9e7f20426025432d98632809552eef9b896cee 100644 (file)
@@ -616,7 +616,7 @@ static int dw8250_probe(struct platform_device *pdev)
        if (IS_ERR(data->pclk))
                return PTR_ERR(data->pclk);
 
-       data->rst = devm_reset_control_get_optional_exclusive(dev, NULL);
+       data->rst = devm_reset_control_array_get_optional_exclusive(dev);
        if (IS_ERR(data->rst))
                return PTR_ERR(data->rst);