mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-08 07:21:27 +00:00
driver:uart: fix up uart communicate fail
fix up uart communicate fail Signed-off-by: shanlong.li <shanlong.li@starfivetech.com>
This commit is contained in:
parent
87a0010eae
commit
77365cc40a
1 changed files with 4 additions and 4 deletions
|
@ -637,10 +637,10 @@ static int dw8250_probe(struct platform_device *pdev)
|
|||
if (err)
|
||||
return err;
|
||||
|
||||
data->rst = devm_reset_control_get_optional_exclusive(dev, NULL);
|
||||
if (IS_ERR(data->rst))
|
||||
return PTR_ERR(data->rst);
|
||||
|
||||
data->rst = devm_reset_control_array_get_exclusive(dev);
|
||||
if (IS_ERR(data->rst)) {
|
||||
err = PTR_ERR(data->rst);
|
||||
}
|
||||
reset_control_deassert(data->rst);
|
||||
|
||||
err = devm_add_action_or_reset(dev, dw8250_reset_control_assert, data->rst);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue