Skip to contentSkip to conversation

drm/panfrost: Replace devm_reset_control_array_get()

PATCH In review Yejune Deng 2 participants 2 messages Nov 3, 2020 – Nov 4, 2020

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/panfrost: Replace devm_reset_control_array_get()

devm_reset_control_array_get_optional_exclusive() looks more readable

---
 drivers/gpu/drm/panfrost/panfrost_device.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/panfrost/panfrost_device.c +1 -1
index ea8d318..1daf932 100644
@@ -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
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 3 lines · Yejune Deng

devm_reset_control_array_get_optional_exclusive() looks more readable

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
index ea8d318..1daf932 100644

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