diff options
Diffstat (limited to 'drivers/base/node.c')
-rw-r--r-- | drivers/base/node.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/base/node.c b/drivers/base/node.c index 793f796c4da3..6ce1501c7de5 100644 --- a/drivers/base/node.c +++ b/drivers/base/node.c | |||
@@ -315,12 +315,12 @@ struct node node_devices[MAX_NUMNODES]; | |||
315 | int register_cpu_under_node(unsigned int cpu, unsigned int nid) | 315 | int register_cpu_under_node(unsigned int cpu, unsigned int nid) |
316 | { | 316 | { |
317 | int ret; | 317 | int ret; |
318 | struct sys_device *obj; | 318 | struct device *obj; |
319 | 319 | ||
320 | if (!node_online(nid)) | 320 | if (!node_online(nid)) |
321 | return 0; | 321 | return 0; |
322 | 322 | ||
323 | obj = get_cpu_sysdev(cpu); | 323 | obj = get_cpu_device(cpu); |
324 | if (!obj) | 324 | if (!obj) |
325 | return 0; | 325 | return 0; |
326 | 326 | ||
@@ -337,12 +337,12 @@ int register_cpu_under_node(unsigned int cpu, unsigned int nid) | |||
337 | 337 | ||
338 | int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) | 338 | int unregister_cpu_under_node(unsigned int cpu, unsigned int nid) |
339 | { | 339 | { |
340 | struct sys_device *obj; | 340 | struct device *obj; |
341 | 341 | ||
342 | if (!node_online(nid)) | 342 | if (!node_online(nid)) |
343 | return 0; | 343 | return 0; |
344 | 344 | ||
345 | obj = get_cpu_sysdev(cpu); | 345 | obj = get_cpu_device(cpu); |
346 | if (!obj) | 346 | if (!obj) |
347 | return 0; | 347 | return 0; |
348 | 348 | ||