Thread (19 messages) 19 messages, 4 authors, 2012-06-30
STALE5084d

[PATCH v3 4/4] memory: emif: add device tree support to emif driver

From: gregkh@linuxfoundation.org (Greg Kroah-Hartman)
Date: 2012-06-14 15:48:20
Also in: linux-omap

On Thu, Jun 14, 2012 at 03:59:24PM +0530, Santosh Shilimkar wrote:
From: Aneesh V <redacted>

Device tree support for the EMIF driver.

Reviewed-by: Benoit Cousson <redacted>
Reviewed-by: Grant Likely <redacted>
Tested-by: Lokesh Vutla <redacted>
Signed-off-by: Aneesh V <redacted>
[santosh.shilimkar at ti.com: Rebased against 3.5-rc]
Signed-off-by: Santosh Shilimkar <redacted>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Am I the memory maintainer now taking these patches?
quoted hunk ↗ jump to hunk
@@ -1267,7 +1534,13 @@ static int __init_or_module emif_probe(struct platform_device *pdev)
 	struct resource		*res;
 	int			irq;
 
-	emif = get_device_details(pdev);
+#if defined(CONFIG_OF)
+	if (pdev->dev.of_node)
+		emif = of_get_device_details(pdev->dev.of_node, &pdev->dev);
+	else
+#endif
+		emif = get_device_details(pdev);
+
Can't you do this without the #ifdef?

thanks,

greg k-h
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help