mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 02:24:57 +08:00
drm/panfrost: simplify the return expression of cz_ih_hw_init()
Simplify the return expression. Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Steven Price <steven.price@arm.com> Signed-off-by: Steven Price <steven.price@arm.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200921131019.91558-1-miaoqinglang@huawei.com
This commit is contained in:
parent
291e8cdd6b
commit
3c4641d4e7
@ -18,19 +18,13 @@
|
||||
|
||||
static int panfrost_reset_init(struct panfrost_device *pfdev)
|
||||
{
|
||||
int err;
|
||||
|
||||
pfdev->rstc = devm_reset_control_array_get(pfdev->dev, false, true);
|
||||
if (IS_ERR(pfdev->rstc)) {
|
||||
dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc));
|
||||
return PTR_ERR(pfdev->rstc);
|
||||
}
|
||||
|
||||
err = reset_control_deassert(pfdev->rstc);
|
||||
if (err)
|
||||
return err;
|
||||
|
||||
return 0;
|
||||
return reset_control_deassert(pfdev->rstc);
|
||||
}
|
||||
|
||||
static void panfrost_reset_fini(struct panfrost_device *pfdev)
|
||||
|
Loading…
Reference in New Issue
Block a user