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
50da7f60
Commit
50da7f60
authored
Mar 19, 2005
by
Thomas Gleixner
Committed by
Thomas Gleixner
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[MTD] cfi_cmdset_0001: Fix compiler warnings
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
51502287
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
drivers/mtd/chips/cfi_cmdset_0001.c
drivers/mtd/chips/cfi_cmdset_0001.c
+5
-5
No files found.
drivers/mtd/chips/cfi_cmdset_0001.c
View file @
50da7f60
...
...
@@ -4,7 +4,7 @@
*
* (C) 2000 Red Hat. GPL'd
*
* $Id: cfi_cmdset_0001.c,v 1.17
0 2005/03/16 22:41:05 nico
Exp $
* $Id: cfi_cmdset_0001.c,v 1.17
1 2005/03/19 22:39:49 gleixner
Exp $
*
*
* 10/10/2000 Nicolas Pitre <nico@cam.org>
...
...
@@ -1707,24 +1707,24 @@ static int __xipram do_erase_oneblock(struct map_info *map, struct flchip *chip,
chipstatus
=
MERGESTATUS
(
status
);
if
((
chipstatus
&
0x30
)
==
0x30
)
{
printk
(
KERN_NOTICE
"Chip reports improper command sequence: status 0x%x
\n
"
,
chipstatus
);
printk
(
KERN_NOTICE
"Chip reports improper command sequence: status 0x%
l
x
\n
"
,
chipstatus
);
ret
=
-
EIO
;
}
else
if
(
chipstatus
&
0x02
)
{
/* Protection bit set */
ret
=
-
EROFS
;
}
else
if
(
chipstatus
&
0x8
)
{
/* Voltage */
printk
(
KERN_WARNING
"Chip reports voltage low on erase: status 0x%x
\n
"
,
chipstatus
);
printk
(
KERN_WARNING
"Chip reports voltage low on erase: status 0x%
l
x
\n
"
,
chipstatus
);
ret
=
-
EIO
;
}
else
if
(
chipstatus
&
0x20
)
{
if
(
retries
--
)
{
printk
(
KERN_DEBUG
"Chip erase failed at 0x%08lx: status 0x%x. Retrying...
\n
"
,
adr
,
chipstatus
);
printk
(
KERN_DEBUG
"Chip erase failed at 0x%08lx: status 0x%
l
x. Retrying...
\n
"
,
adr
,
chipstatus
);
timeo
=
jiffies
+
HZ
;
put_chip
(
map
,
chip
,
adr
);
spin_unlock
(
chip
->
mutex
);
goto
retry
;
}
printk
(
KERN_DEBUG
"Chip erase failed at 0x%08lx: status 0x%x
\n
"
,
adr
,
chipstatus
);
printk
(
KERN_DEBUG
"Chip erase failed at 0x%08lx: status 0x%
l
x
\n
"
,
adr
,
chipstatus
);
ret
=
-
EIO
;
}
}
else
{
...
...
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