of/reconfig: Always use the same structure for notifiers
[firefly-linux-kernel-4.4.55.git] / arch / powerpc / platforms / pseries / hotplug-cpu.c
index 217ca5c75b2007f32615266fb20f36fce359a2cd..6d4f30ac883a355dfedf61ba935200eefce30a4e 100644 (file)
@@ -336,16 +336,17 @@ static void pseries_remove_processor(struct device_node *np)
 }
 
 static int pseries_smp_notifier(struct notifier_block *nb,
-                               unsigned long action, void *node)
+                               unsigned long action, void *data)
 {
+       struct of_reconfig_data *rd = data;
        int err = 0;
 
        switch (action) {
        case OF_RECONFIG_ATTACH_NODE:
-               err = pseries_add_processor(node);
+               err = pseries_add_processor(rd->dn);
                break;
        case OF_RECONFIG_DETACH_NODE:
-               pseries_remove_processor(node);
+               pseries_remove_processor(rd->dn);
                break;
        }
        return notifier_from_errno(err);