Thread (28 messages) 28 messages, 5 authors, 2015-08-11

[PATCH 16/20] power/reset: at91-reset: remove useless at91_reset_platform_probe()

From: Thomas Petazzoni <hidden>
Date: 2015-07-30 09:40:30
Also in: linux-pm, lkml

Dear Alexandre Belloni,

On Thu, 30 Jul 2015 02:22:02 +0200, Alexandre Belloni wrote:
 static int at91_reset_probe(struct platform_device *pdev)
 {
 	int ret;
 
-	if (pdev->dev.of_node)
-		ret = at91_reset_of_probe(pdev);
-	else
-		ret = at91_reset_platform_probe(pdev);
 
+	ret = at91_reset_of_probe(pdev);
Maybe it no longer makes sense to have separate at91_reset_probe() and
at91_reset_of_probe() functions then.

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help