Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
da53d0dc
Commit
da53d0dc
authored
Jul 28, 2009
by
Thomas Gleixner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
parport: convert to anon_semaphore
Signed-off-by:
Thomas Gleixner
<
tglx@linutronix.de
>
parent
7082c040
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
drivers/parport/ieee1284.c
drivers/parport/ieee1284.c
+2
-2
drivers/parport/share.c
drivers/parport/share.c
+1
-1
include/linux/parport.h
include/linux/parport.h
+1
-1
No files found.
drivers/parport/ieee1284.c
View file @
da53d0dc
...
...
@@ -41,7 +41,7 @@
* It will be useful to call this from an interrupt handler. */
static
void
parport_ieee1284_wakeup
(
struct
parport
*
port
)
{
up
(
&
port
->
physport
->
ieee1284
.
irq
);
anon_
up
(
&
port
->
physport
->
ieee1284
.
irq
);
}
static
struct
parport
*
port_from_cookie
[
PARPORT_MAX
];
...
...
@@ -83,7 +83,7 @@ int parport_wait_event (struct parport *port, signed long timeout)
timer
.
data
=
port
->
number
;
add_timer
(
&
timer
);
ret
=
down_interruptible
(
&
port
->
physport
->
ieee1284
.
irq
);
ret
=
anon_
down_interruptible
(
&
port
->
physport
->
ieee1284
.
irq
);
if
(
!
del_timer_sync
(
&
timer
)
&&
!
ret
)
/* Timed out. */
ret
=
1
;
...
...
drivers/parport/share.c
View file @
da53d0dc
...
...
@@ -306,7 +306,7 @@ struct parport *parport_register_port(unsigned long base, int irq, int dma,
spin_lock_init
(
&
tmp
->
pardevice_lock
);
tmp
->
ieee1284
.
mode
=
IEEE1284_MODE_COMPAT
;
tmp
->
ieee1284
.
phase
=
IEEE1284_PH_FWD_IDLE
;
semaphore_init_locked
(
&
tmp
->
ieee1284
.
irq
);
anon_
semaphore_init_locked
(
&
tmp
->
ieee1284
.
irq
);
tmp
->
spintime
=
parport_default_spintime
;
atomic_set
(
&
tmp
->
ref_count
,
1
);
INIT_LIST_HEAD
(
&
tmp
->
full_list
);
...
...
include/linux/parport.h
View file @
da53d0dc
...
...
@@ -264,7 +264,7 @@ enum ieee1284_phase {
struct
ieee1284_info
{
int
mode
;
volatile
enum
ieee1284_phase
phase
;
struct
semaphore
irq
;
struct
anon_
semaphore
irq
;
};
/* A parallel port */
...
...
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