projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56fd691
)
serial: 8250_dw: Support a list of reset
author
yanhong.wang
<yanhong.wang@starfivetech.com>
Wed, 8 Jun 2022 02:43:57 +0000
(10:43 +0800)
committer
samin
<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
patch
|
blob
|
history
diff --git
a/drivers/tty/serial/8250/8250_dw.c
b/drivers/tty/serial/8250/8250_dw.c
index
a3a0154
..
4dfb12f
100644
(file)
--- a/
drivers/tty/serial/8250/8250_dw.c
+++ b/
drivers/tty/serial/8250/8250_dw.c
@@
-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;