projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
powerpc: Add VSX assembler code macros
[deliverable/linux.git]
/
arch
/
powerpc
/
kernel
/
rtas_flash.c
diff --git
a/arch/powerpc/kernel/rtas_flash.c
b/arch/powerpc/kernel/rtas_flash.c
index 538baf46f15f9471e8b9d8490399d9fbf1760be3..09ded5c424a967cdaa0c1f5817bd7e301b971f60 100644
(file)
--- a/
arch/powerpc/kernel/rtas_flash.c
+++ b/
arch/powerpc/kernel/rtas_flash.c
@@
-704,18
+704,11
@@
static int initialize_flash_pde_data(const char *rtas_call_name,
static struct proc_dir_entry *create_flash_pde(const char *filename,
const struct file_operations *fops)
{
static struct proc_dir_entry *create_flash_pde(const char *filename,
const struct file_operations *fops)
{
- struct proc_dir_entry *ent = NULL;
-
- ent = create_proc_entry(filename, S_IRUSR | S_IWUSR, NULL);
- if (ent != NULL) {
- ent->proc_fops = fops;
- ent->owner = THIS_MODULE;
- }
-
- return ent;
+ return proc_create(filename, S_IRUSR | S_IWUSR, NULL, fops);
}
static const struct file_operations rtas_flash_operations = {
}
static const struct file_operations rtas_flash_operations = {
+ .owner = THIS_MODULE,
.read = rtas_flash_read,
.write = rtas_flash_write,
.open = rtas_excl_open,
.read = rtas_flash_read,
.write = rtas_flash_write,
.open = rtas_excl_open,
@@
-723,6
+716,7
@@
static const struct file_operations rtas_flash_operations = {
};
static const struct file_operations manage_flash_operations = {
};
static const struct file_operations manage_flash_operations = {
+ .owner = THIS_MODULE,
.read = manage_flash_read,
.write = manage_flash_write,
.open = rtas_excl_open,
.read = manage_flash_read,
.write = manage_flash_write,
.open = rtas_excl_open,
@@
-730,13
+724,14
@@
static const struct file_operations manage_flash_operations = {
};
static const struct file_operations validate_flash_operations = {
};
static const struct file_operations validate_flash_operations = {
+ .owner = THIS_MODULE,
.read = validate_flash_read,
.write = validate_flash_write,
.open = rtas_excl_open,
.release = validate_flash_release,
};
.read = validate_flash_read,
.write = validate_flash_write,
.open = rtas_excl_open,
.release = validate_flash_release,
};
-int __init rtas_flash_init(void)
+
static
int __init rtas_flash_init(void)
{
int rc;
{
int rc;
@@
-807,7
+802,7
@@
int __init rtas_flash_init(void)
rtas_block_ctor);
if (!flash_block_cache) {
printk(KERN_ERR "%s: failed to create block cache\n",
rtas_block_ctor);
if (!flash_block_cache) {
printk(KERN_ERR "%s: failed to create block cache\n",
- __
FUNCTION
__);
+ __
func
__);
rc = -ENOMEM;
goto cleanup;
}
rc = -ENOMEM;
goto cleanup;
}
@@
-822,7
+817,7
@@
cleanup:
return rc;
}
return rc;
}
-void __exit rtas_flash_cleanup(void)
+
static
void __exit rtas_flash_cleanup(void)
{
rtas_flash_term_hook = NULL;
{
rtas_flash_term_hook = NULL;
This page took
0.024844 seconds
and
5
git commands to generate.