From: Alexandre Belloni Date: Wed, 27 Aug 2014 16:06:51 +0000 (+0200) Subject: ARM: at91: fix ramc standby function registration X-Git-Tag: fixes-for-v3.18-merge-window~3^2~13^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8260db557389c1fb46eeafb54414b03d9f19e49;p=pandora-kernel.git 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 Signed-off-by: Nicolas Ferre --- Reading git-diff-tree failed