[POWERPC] Remove find_compatible_devices

This is an old interface and is replaced by of_find_compatible_node.

Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:
Stephen Rothwell
2007-04-24 13:48:41 +10:00
committed by Paul Mackerras
부모 6210230725
커밋 4bf56e1725
4개의 변경된 파일22개의 추가작업 그리고 33개의 파일을 삭제

파일 보기

@@ -39,12 +39,17 @@ long __init chrp_time_init(void)
struct resource r;
int base;
rtcs = find_compatible_devices("rtc", "pnpPNP,b00");
rtcs = of_find_compatible_node(NULL, "rtc", "pnpPNP,b00");
if (rtcs == NULL)
rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc");
if (rtcs == NULL)
rtcs = find_compatible_devices("rtc", "ds1385-rtc");
if (rtcs == NULL || of_address_to_resource(rtcs, 0, &r))
return 0;
if (of_address_to_resource(rtcs, 0, &r)) {
of_node_put(rtcs);
return 0;
}
of_node_put(rtcs);
base = r.start;
nvram_as1 = 0;
nvram_as0 = base;