Thread (6 messages) flat view 6 messages, 3 authors, 2014-01-22

[PATCH v2 05/15] watchdog: orion: Make RSTOUT register a separate resource

From: Jason Gunthorpe <hidden>
Date: 2014-01-21 23:33:21
Also in: linux-devicetree, linux-watchdog

Possibly related (same subject, not in this thread)

On Tue, Jan 21, 2014 at 06:12:31AM -0300, Ezequiel Garcia wrote:
In order to support other SoC, it's required to distinguish
the 'control' timer register, from the 'rstout' register
that enables system reset on watchdog expiration.
+	res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
+	if (!res)
+		return -ENODEV;
           ^^^^^^^^^^^^^^^^^^^^^^

This change seems to break compatibility with existing DT files that
have only a single entry in reg?

Can the value be defaulted some how if missing?

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