Thread (11 messages) 11 messages, 3 authors, 2018-10-10
DORMANTno replies
Revisions (19)
  1. v1 [diff vs current]
  2. v1 [diff vs current]
  3. v1 [diff vs current]
  4. v1 [diff vs current]
  5. v1 [diff vs current]
  6. v2 [diff vs current]
  7. v3 [diff vs current]
  8. v4 [diff vs current]
  9. v4 [diff vs current]
  10. v4 [diff vs current]
  11. v4 [diff vs current]
  12. v4 [diff vs current]
  13. v4 [diff vs current]
  14. v4 current
  15. v5 [diff vs current]
  16. v6 [diff vs current]
  17. v7 [diff vs current]
  18. v8 [diff vs current]
  19. v9 [diff vs current]

[PATCH V4 2/2] firmware: imx: add SCU power domain driver

From: aisheng.dong@nxp.com (A.s. Dong)
Date: 2018-10-10 08:42:58
Also in: linux-pm

Hi Sascha,
Hi Sascha,
quoted
quoted
quoted
+
+	ret = of_genpd_add_provider_simple(np, &imx_sc_pd->pd);
+	if (!ret)
+		return &imx_sc_pd->pd;
+
+	pm_genpd_remove_subdomain(genpd_parent, &imx_sc_pd->pd);
+
+err:
+	pr_warn("failed to add PM domain %pOF: %d\n", np, ret);
You have a struct device *, you should use dev_* functions.
Good suggestion.
A bit more thinking of it.

It may be not quite suitable to use dev_* here for print functions as we need
pass in a pointer of struct device for debug purpose only.
And we need change other two places as well which are in the same situation.

In current patch, we already define the print format at the top of the file.
#define pr_fmt(fmt) "scu_pd: " fmt
As SCU PD has only one device, it may does not help too much to use dev_*
functions.

Do you think it's reasonable?

If you're okay with this, I will drop this change and resend with other things
updated according to your suggestions.
Are you okay with this?

Regards
Dong Aisheng
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help