Skip to contentSkip to conversation

cell: replace spu.nid with spu.node

PATCH In review Geoff Levand 1 participant 1 message Nov 17, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/16 cell: replace spu.nid with spu.node

Subject: cell: replace spu.nid with spu.node

From: Geoff Levand <[email protected]> Replace the use of the platform specific variable spu.nid with the platform independednt variable spu.node.

---

arch/powerpc/platforms/cell/spu_base.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/cell/spu_base.c
===================================================================
@@ -810,14 +810,14 @@ static int spu_create_sysdev(struct spu 
 		return ret;
 	}
 
-	sysfs_add_device_to_node(&spu->sysdev, spu->nid);
+	sysfs_add_device_to_node(&spu->sysdev, spu->node);
 
 	return 0;
 }
 
 static void spu_destroy_sysdev(struct spu *spu)
 {
-	sysfs_remove_device_from_node(&spu->sysdev, spu->nid);
+	sysfs_remove_device_from_node(&spu->sysdev, spu->node);
 	sysdev_unregister(&spu->sysdev);
 }