aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/powerpc/platforms/cell/spu_base.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/cell/spu_base.c b/arch/powerpc/platforms/cell/spu_base.c
index a7f5a7653c62..cadcc64a8657 100644
--- a/arch/powerpc/platforms/cell/spu_base.c
+++ b/arch/powerpc/platforms/cell/spu_base.c
@@ -462,8 +462,18 @@ void spu_free(struct spu *spu)
462} 462}
463EXPORT_SYMBOL_GPL(spu_free); 463EXPORT_SYMBOL_GPL(spu_free);
464 464
465static int spu_shutdown(struct sys_device *sysdev)
466{
467 struct spu *spu = container_of(sysdev, struct spu, sysdev);
468
469 spu_free_irqs(spu);
470 spu_destroy_spu(spu);
471 return 0;
472}
473
465struct sysdev_class spu_sysdev_class = { 474struct sysdev_class spu_sysdev_class = {
466 set_kset_name("spu") 475 set_kset_name("spu"),
476 .shutdown = spu_shutdown,
467}; 477};
468 478
469int spu_add_sysdev_attr(struct sysdev_attribute *attr) 479int spu_add_sysdev_attr(struct sysdev_attribute *attr)