diff options
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/cell/spufs/file.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/cell/spufs/file.c b/arch/powerpc/platforms/cell/spufs/file.c index 1018acd1746b..9326714717ca 100644 --- a/arch/powerpc/platforms/cell/spufs/file.c +++ b/arch/powerpc/platforms/cell/spufs/file.c | |||
@@ -460,7 +460,7 @@ static int spufs_cntl_open(struct inode *inode, struct file *file) | |||
460 | if (!i->i_openers++) | 460 | if (!i->i_openers++) |
461 | ctx->cntl = inode->i_mapping; | 461 | ctx->cntl = inode->i_mapping; |
462 | mutex_unlock(&ctx->mapping_lock); | 462 | mutex_unlock(&ctx->mapping_lock); |
463 | return spufs_attr_open(inode, file, spufs_cntl_get, | 463 | return simple_attr_open(inode, file, spufs_cntl_get, |
464 | spufs_cntl_set, "0x%08lx"); | 464 | spufs_cntl_set, "0x%08lx"); |
465 | } | 465 | } |
466 | 466 | ||
@@ -470,7 +470,7 @@ spufs_cntl_release(struct inode *inode, struct file *file) | |||
470 | struct spufs_inode_info *i = SPUFS_I(inode); | 470 | struct spufs_inode_info *i = SPUFS_I(inode); |
471 | struct spu_context *ctx = i->i_ctx; | 471 | struct spu_context *ctx = i->i_ctx; |
472 | 472 | ||
473 | spufs_attr_release(inode, file); | 473 | simple_attr_close(inode, file); |
474 | 474 | ||
475 | mutex_lock(&ctx->mapping_lock); | 475 | mutex_lock(&ctx->mapping_lock); |
476 | if (!--i->i_openers) | 476 | if (!--i->i_openers) |
@@ -482,8 +482,8 @@ spufs_cntl_release(struct inode *inode, struct file *file) | |||
482 | static const struct file_operations spufs_cntl_fops = { | 482 | static const struct file_operations spufs_cntl_fops = { |
483 | .open = spufs_cntl_open, | 483 | .open = spufs_cntl_open, |
484 | .release = spufs_cntl_release, | 484 | .release = spufs_cntl_release, |
485 | .read = spufs_attr_read, | 485 | .read = simple_attr_read, |
486 | .write = spufs_attr_write, | 486 | .write = simple_attr_write, |
487 | .mmap = spufs_cntl_mmap, | 487 | .mmap = spufs_cntl_mmap, |
488 | }; | 488 | }; |
489 | 489 | ||