serial: 8250_dw: Support a list of reset
authoryanhong.wang <yanhong.wang@starfivetech.com>
Wed, 8 Jun 2022 02:43:57 +0000 (10:43 +0800)
committersamin <samin.guo@starfivetech.com>
Wed, 8 Jun 2022 11:30:21 +0000 (19:30 +0800)
Change devm_reset_control_get_optional_exclusive API to
devm_reset_control_array_get_exclusive, in order to support a list of
reset.

Signed-off-by: yanhong.wang <yanhong.wang@starfivetech.com>
drivers/tty/serial/8250/8250_dw.c

index a3a0154..4dfb12f 100644 (file)
@@ -558,7 +558,7 @@ static int dw8250_probe(struct platform_device *pdev)
                goto err_clk;
        }
 
-       data->rst = devm_reset_control_get_optional_exclusive(dev, NULL);
+       data->rst = devm_reset_control_array_get_exclusive(dev);
        if (IS_ERR(data->rst)) {
                err = PTR_ERR(data->rst);
                goto err_pclk;