Skip to content

Commit 41424f5

Browse files
hal-fenggregkh
authored andcommitted
serial: 8250_dw: Use reset array API to get resets
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ac434f2 commit 41424f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/8250/8250_dw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -616,7 +616,7 @@ static int dw8250_probe(struct platform_device *pdev)
616616
if (IS_ERR(data->pclk))
617617
return PTR_ERR(data->pclk);
618618

619-
data->rst = devm_reset_control_get_optional_exclusive(dev, NULL);
619+
data->rst = devm_reset_control_array_get_optional_exclusive(dev);
620620
if (IS_ERR(data->rst))
621621
return PTR_ERR(data->rst);
622622

0 commit comments

Comments
 (0)