projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c44dfe4
)
drm/panfrost: Replace devm_reset_control_array_get()
author
Yejune Deng
<yejune.deng@gmail.com>
Tue, 3 Nov 2020 01:48:02 +0000
(09:48 +0800)
committer
Steven Price
<steven.price@arm.com>
Wed, 4 Nov 2020 11:54:03 +0000
(11:54 +0000)
devm_reset_control_array_get_optional_exclusive() looks more readable
Signed-off-by: Yejune Deng <yejune.deng@gmail.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/1604368082-6032-1-git-send-email-yejune.deng@gmail.com
drivers/gpu/drm/panfrost/panfrost_device.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/panfrost/panfrost_device.c
b/drivers/gpu/drm/panfrost/panfrost_device.c
index ea8d31863c50e98a1f6fdd09425c90bcdef39f8d..1daf9322954a9a02a6bb710e643ab7e401e78a87 100644
(file)
--- a/
drivers/gpu/drm/panfrost/panfrost_device.c
+++ b/
drivers/gpu/drm/panfrost/panfrost_device.c
@@
-18,7
+18,7
@@
static int panfrost_reset_init(struct panfrost_device *pfdev)
{
- pfdev->rstc = devm_reset_control_array_get
(pfdev->dev, false, true
);
+ pfdev->rstc = devm_reset_control_array_get
_optional_exclusive(pfdev->dev
);
if (IS_ERR(pfdev->rstc)) {
dev_err(pfdev->dev, "get reset failed %ld\n", PTR_ERR(pfdev->rstc));
return PTR_ERR(pfdev->rstc);