summaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorHal Feng <hal.feng@starfivetech.com>2024-06-04 10:47:28 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-06-24 16:09:10 +0200
commit41424f5c3bef47ff1eedaf1f90e7ae37f1b1c165 (patch)
tree88b5c82b952d03a1f2e63e0b03daf96374cfcdb4 /drivers/tty
parentdt-bindings: serial: snps-dw-apb-uart: Add one more reset signal for StarFive... (diff)
downloadlinux-41424f5c3bef47ff1eedaf1f90e7ae37f1b1c165.tar.xz
linux-41424f5c3bef47ff1eedaf1f90e7ae37f1b1c165.zip
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 <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>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/8250/8250_dw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serial/8250/8250_dw.c b/drivers/tty/serial/8250/8250_dw.c
index fb809e32c6ae..ab9e7f204260 100644
--- a/drivers/tty/serial/8250/8250_dw.c
+++ b/drivers/tty/serial/8250/8250_dw.c
@@ -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);