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:
shanlong.li 2023-07-10 03:07:57 -07:00 committed by Hal Feng
parent 87a0010eae
commit 77365cc40a

View file

@ -637,10 +637,10 @@ static int dw8250_probe(struct platform_device *pdev)
if (err) if (err)
return err; return err;
data->rst = devm_reset_control_get_optional_exclusive(dev, NULL); data->rst = devm_reset_control_array_get_exclusive(dev);
if (IS_ERR(data->rst)) if (IS_ERR(data->rst)) {
return PTR_ERR(data->rst); err = PTR_ERR(data->rst);
}
reset_control_deassert(data->rst); reset_control_deassert(data->rst);
err = devm_add_action_or_reset(dev, dw8250_reset_control_assert, data->rst); err = devm_add_action_or_reset(dev, dw8250_reset_control_assert, data->rst);