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
3c729a50
Commit
3c729a50
authored
Jul 21, 2003
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Fix avm_pci driver for irqreturn_t changes
Somehow, this one had been overlooked...
parent
606e56e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
drivers/isdn/hisax/avm_pci.c
drivers/isdn/hisax/avm_pci.c
+3
-6
No files found.
drivers/isdn/hisax/avm_pci.c
View file @
3c729a50
...
@@ -530,21 +530,17 @@ inithdlc(struct IsdnCardState *cs)
...
@@ -530,21 +530,17 @@ inithdlc(struct IsdnCardState *cs)
modehdlc
(
cs
->
bcs
+
1
,
-
1
,
1
);
modehdlc
(
cs
->
bcs
+
1
,
-
1
,
1
);
}
}
static
void
static
irqreturn_t
avm_pcipnp_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
avm_pcipnp_interrupt
(
int
intno
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
struct
IsdnCardState
*
cs
=
dev_id
;
struct
IsdnCardState
*
cs
=
dev_id
;
u8
val
;
u8
val
;
u8
sval
;
u8
sval
;
if
(
!
cs
)
{
printk
(
KERN_WARNING
"AVM PCI: Spurious interrupt!
\n
"
);
return
;
}
sval
=
inb
(
cs
->
hw
.
avm
.
cfg_reg
+
2
);
sval
=
inb
(
cs
->
hw
.
avm
.
cfg_reg
+
2
);
if
((
sval
&
AVM_STATUS0_IRQ_MASK
)
==
AVM_STATUS0_IRQ_MASK
)
if
((
sval
&
AVM_STATUS0_IRQ_MASK
)
==
AVM_STATUS0_IRQ_MASK
)
/* possible a shared IRQ reqest */
/* possible a shared IRQ reqest */
return
;
return
IRQ_NONE
;
if
(
!
(
sval
&
AVM_STATUS0_IRQ_ISAC
))
{
if
(
!
(
sval
&
AVM_STATUS0_IRQ_ISAC
))
{
val
=
ReadISAC
(
cs
,
ISAC_ISTA
);
val
=
ReadISAC
(
cs
,
ISAC_ISTA
);
isac_interrupt
(
cs
,
val
);
isac_interrupt
(
cs
,
val
);
...
@@ -554,6 +550,7 @@ avm_pcipnp_interrupt(int intno, void *dev_id, struct pt_regs *regs)
...
@@ -554,6 +550,7 @@ avm_pcipnp_interrupt(int intno, void *dev_id, struct pt_regs *regs)
}
}
WriteISAC
(
cs
,
ISAC_MASK
,
0xFF
);
WriteISAC
(
cs
,
ISAC_MASK
,
0xFF
);
WriteISAC
(
cs
,
ISAC_MASK
,
0x0
);
WriteISAC
(
cs
,
ISAC_MASK
,
0x0
);
return
IRQ_HANDLED
;
}
}
static
int
static
int
...
...
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