Thread (2 messages) 2 messages, 2 authors, 2015-05-20

[PATCH v2 0/7] Change snvs rtc and poweroff to use syscon add pwrkey driver

From: Joshua Clayton <hidden>
Date: 2015-05-20 14:46:18
Also in: linux-devicetree, linux-input, linux-pm, linux-rtc

+       snvs_np = of_get_parent(pdev->dev.of_node);
+       if (!snvs_np)
+               return -ENODEV;
+
+       data->snvs = syscon_node_to_regmap(snvs_np);
+       of_node_put(snvs_np);
+
+       if (!data->snvs) {
+               pr_err("Can't snvs syscon\n");
+               return -ENODEV;
+       }

How about change error message to " Can't snvs syscon, probably use
old dts file"?
How about simply: "Cannot find snvs syscon node in devicetree."


-- 
~Joshua Clayton
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help