Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 60564
b: refs/heads/master
c: 6deac06
h: refs/heads/master
v: v3
  • Loading branch information
Geoff Levand authored and Paul Mackerras committed Jun 28, 2007
1 parent c01fc58 commit 6dd844d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b7abc5c53e3c65b8e931bd96db2d08ba670e111a
refs/heads/master: 6deac06612d2935b917550db2bc8a8b3f7c7aeb5
12 changes: 11 additions & 1 deletion trunk/arch/powerpc/platforms/cell/spu_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -462,8 +462,18 @@ void spu_free(struct spu *spu)
}
EXPORT_SYMBOL_GPL(spu_free);

static int spu_shutdown(struct sys_device *sysdev)
{
struct spu *spu = container_of(sysdev, struct spu, sysdev);

spu_free_irqs(spu);
spu_destroy_spu(spu);
return 0;
}

struct sysdev_class spu_sysdev_class = {
set_kset_name("spu")
set_kset_name("spu"),
.shutdown = spu_shutdown,
};

int spu_add_sysdev_attr(struct sysdev_attribute *attr)
Expand Down

0 comments on commit 6dd844d

Please sign in to comment.