drm/panfrost: Replace devm_reset_control_array_get()
Subsystems (3)
PATCH 1/1 drm/panfrost: Replace devm_reset_control_array_get()
devm_reset_control_array_get_optional_exclusive() looks more readable
Signed-off-by Yejune Deng <[email protected]>
--- drivers/gpu/drm/panfrost/panfrost_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_device.c +1 -1
@@ -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);
Signature · 1 line
1.9.1
Quoted 3 lines · Yejune Deng
devm_reset_control_array_get_optional_exclusive()looks more readableSigned-off-by Yejune Deng <[email protected]>
Reviewed-by Steven Price <[email protected]>
Thanks, I'll push this to drm-misc-next.
Steve
Quoted 10 lines
--- drivers/gpu/drm/panfrost/panfrost_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/panfrost/panfrost_device.c +0
-0
drivers/gpu/drm/panfrost/panfrost_device.c line 24
Quoted 8 lines
drivers/gpu/drm/panfrost/panfrost_device.c +1
-1@@ -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);
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel