Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4c515af5
Commit
4c515af5
authored
Oct 13, 2002
by
Russell King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Update integrator-flash.c from MTD CVS
Keep the partition information around for the lifetime of the module.
parent
da4acd13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/mtd/maps/integrator-flash.c
drivers/mtd/maps/integrator-flash.c
+4
-4
No files found.
drivers/mtd/maps/integrator-flash.c
View file @
4c515af5
...
...
@@ -21,7 +21,7 @@
This is access code for flashes using ARM's flash partitioning
standards.
$Id: integrator-flash.c,v 1.
6 2001/10/02 16:00:01 dwmw2
Exp $
$Id: integrator-flash.c,v 1.
7 2001/11/01 20:55:47 rmk
Exp $
======================================================================*/
...
...
@@ -208,10 +208,10 @@ static struct map_info armflash_map =
};
static
struct
mtd_info
*
mtd
;
static
struct
mtd_partition
*
parts
;
static
int
__init
armflash_cfi_init
(
void
*
base
,
u_int
size
)
{
struct
mtd_partition
*
parts
;
int
ret
;
armflash_flash_init
();
...
...
@@ -238,8 +238,6 @@ static int __init armflash_cfi_init(void *base, u_int size)
ret
=
parse_afs_partitions
(
mtd
,
&
parts
);
if
(
ret
>
0
)
{
ret
=
add_mtd_partitions
(
mtd
,
parts
,
ret
);
/* we don't need the partition info any longer */
kfree
(
parts
);
if
(
ret
)
printk
(
KERN_ERR
"mtd partition registration "
"failed: %d
\n
"
,
ret
);
...
...
@@ -262,6 +260,8 @@ static void armflash_cfi_exit(void)
del_mtd_partitions
(
mtd
);
map_destroy
(
mtd
);
}
if
(
parts
)
kfree
(
parts
);
}
static
int
__init
armflash_init
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment