Alexandre Belloni c8260db557 ARM: at91: fix ramc standby function registration
After the for_each_matching_node loop, we end up with a null value for np. Then,
of_match_node() is not matching anything and we can't register the standby
function and "ramc no standby function available" is printed.

Fix that by selecting the first available standby function. For now,
at91_pm_set_standby doesn't support multiple different standby functions and no
existing SoCs have different RAM controllers.

Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
2014-09-01 18:37:51 +02:00
..
2013-12-20 11:44:20 +01:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2012-12-24 09:36:38 -07:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2014-05-07 18:27:21 +02:00
2013-03-26 12:18:04 +01:00
2014-06-03 09:01:02 -07:00
2014-05-07 18:27:21 +02:00
2014-08-19 20:32:49 +02:00