diff options
Diffstat (limited to 'arch/sparc64/kernel/ldc.c')
-rw-r--r-- | arch/sparc64/kernel/ldc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/sparc64/kernel/ldc.c b/arch/sparc64/kernel/ldc.c index dbb65b674a67..85a2be0b0962 100644 --- a/arch/sparc64/kernel/ldc.c +++ b/arch/sparc64/kernel/ldc.c | |||
@@ -2335,15 +2335,20 @@ EXPORT_SYMBOL(ldc_free_exp_dring); | |||
2335 | 2335 | ||
2336 | static int __init ldc_init(void) | 2336 | static int __init ldc_init(void) |
2337 | { | 2337 | { |
2338 | struct mdesc_node *mp; | ||
2339 | unsigned long major, minor; | 2338 | unsigned long major, minor; |
2339 | struct mdesc_handle *hp; | ||
2340 | const u64 *v; | 2340 | const u64 *v; |
2341 | u64 mp; | ||
2341 | 2342 | ||
2342 | mp = md_find_node_by_name(NULL, "platform"); | 2343 | hp = mdesc_grab(); |
2343 | if (!mp) | 2344 | if (!hp) |
2344 | return -ENODEV; | 2345 | return -ENODEV; |
2345 | 2346 | ||
2346 | v = md_get_property(mp, "domaining-enabled", NULL); | 2347 | mp = mdesc_node_by_name(hp, MDESC_NODE_NULL, "platform"); |
2348 | if (mp == MDESC_NODE_NULL) | ||
2349 | return -ENODEV; | ||
2350 | |||
2351 | v = mdesc_get_property(hp, mp, "domaining-enabled", NULL); | ||
2347 | if (!v) | 2352 | if (!v) |
2348 | return -ENODEV; | 2353 | return -ENODEV; |
2349 | 2354 | ||