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
nexedi
linux
Commits
51891a43
Commit
51891a43
authored
Mar 26, 2012
by
Bryan Wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
char: nwflash: remove old led event code
Signed-off-by:
Bryan Wu
<
bryan.wu@canonical.com
>
parent
cf6856d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
34 deletions
+0
-34
drivers/char/nwflash.c
drivers/char/nwflash.c
+0
-34
No files found.
drivers/char/nwflash.c
View file @
51891a43
...
...
@@ -30,7 +30,6 @@
#include <asm/hardware/dec21285.h>
#include <asm/io.h>
#include <asm/leds.h>
#include <asm/mach-types.h>
#include <asm/uaccess.h>
...
...
@@ -179,9 +178,6 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
written
=
0
;
leds_event
(
led_claim
);
leds_event
(
led_green_on
);
nBlock
=
(
int
)
p
>>
16
;
//block # of 64K bytes
/*
...
...
@@ -258,11 +254,6 @@ static ssize_t flash_write(struct file *file, const char __user *buf,
printk
(
KERN_DEBUG
"flash_write: written 0x%X bytes OK.
\n
"
,
written
);
}
/*
* restore reg on exit
*/
leds_event
(
led_release
);
mutex_unlock
(
&
nwflash_mutex
);
return
written
;
...
...
@@ -333,11 +324,6 @@ static int erase_block(int nBlock)
unsigned
long
timeout
;
int
temp
,
temp1
;
/*
* orange LED == erase
*/
leds_event
(
led_amber_on
);
/*
* reset footbridge to the correct offset 0 (...0..3)
*/
...
...
@@ -446,12 +432,6 @@ static int write_block(unsigned long p, const char __user *buf, int count)
unsigned
long
timeout
;
unsigned
long
timeout1
;
/*
* red LED == write
*/
leds_event
(
led_amber_off
);
leds_event
(
led_red_on
);
pWritePtr
=
(
unsigned
char
*
)
((
unsigned
int
)
(
FLASH_BASE
+
p
));
/*
...
...
@@ -557,18 +537,10 @@ static int write_block(unsigned long p, const char __user *buf, int count)
printk
(
KERN_DEBUG
"write_block: Retrying write at 0x%X)n"
,
pWritePtr
-
FLASH_BASE
);
/*
* no LED == waiting
*/
leds_event
(
led_amber_off
);
/*
* wait couple ms
*/
msleep
(
10
);
/*
* red LED == write
*/
leds_event
(
led_red_on
);
goto
WriteRetry
;
}
else
{
...
...
@@ -583,12 +555,6 @@ static int write_block(unsigned long p, const char __user *buf, int count)
}
}
/*
* green LED == read/verify
*/
leds_event
(
led_amber_off
);
leds_event
(
led_green_on
);
msleep
(
10
);
pWritePtr
=
(
unsigned
char
*
)
((
unsigned
int
)
(
FLASH_BASE
+
p
));
...
...
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