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
f01c92ba
Commit
f01c92ba
authored
Apr 29, 2003
by
Andrew Morton
Committed by
Christoph Hellwig
Apr 29, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] irqs: bttv
Update bttv driver to the new IRQ API.
parent
e5ded0b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
drivers/media/video/bttv-driver.c
drivers/media/video/bttv-driver.c
+7
-5
No files found.
drivers/media/video/bttv-driver.c
View file @
f01c92ba
...
...
@@ -1279,7 +1279,7 @@ static int bttv_prepare_buffer(struct bttv *btv, struct bttv_buffer *buf,
}
static
int
buffer_setup
(
struct
file
*
file
,
int
*
count
,
int
*
size
)
buffer_setup
(
struct
file
*
file
,
unsigned
int
*
count
,
unsigned
int
*
size
)
{
struct
bttv_fh
*
fh
=
file
->
private_data
;
...
...
@@ -3156,22 +3156,23 @@ bttv_irq_switch_fields(struct bttv *btv)
spin_unlock
(
&
btv
->
s_lock
);
}
static
void
bttv_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
static
irqreturn_t
bttv_irq
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
u32
stat
,
astat
;
u32
dstat
;
int
count
;
struct
bttv
*
btv
;
int
handled
=
0
;
btv
=
(
struct
bttv
*
)
dev_id
;
count
=
0
;
while
(
1
)
{
while
(
1
)
{
/* get/clear interrupt status bits */
stat
=
btread
(
BT848_INT_STAT
);
astat
=
stat
&
btread
(
BT848_INT_MASK
);
if
(
!
astat
)
return
;
break
;
handled
=
1
;
btwrite
(
stat
,
BT848_INT_STAT
);
/* get device status bits */
...
...
@@ -3231,6 +3232,7 @@ static void bttv_irq(int irq, void *dev_id, struct pt_regs * regs)
"bttv%d: IRQ lockup, cleared int mask
\n
"
,
btv
->
nr
);
}
}
return
IRQ_RETVAL
(
handled
);
}
...
...
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