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
7a21eb22
Commit
7a21eb22
authored
May 01, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: cleanup AVM drivers
Remove unnecessary wrappers around irq handlers.
parent
cdedc4df
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
33 deletions
+7
-33
drivers/isdn/hardware/avm/avmcard.h
drivers/isdn/hardware/avm/avmcard.h
+1
-1
drivers/isdn/hardware/avm/b1.c
drivers/isdn/hardware/avm/b1.c
+3
-2
drivers/isdn/hardware/avm/b1isa.c
drivers/isdn/hardware/avm/b1isa.c
+1
-10
drivers/isdn/hardware/avm/b1pci.c
drivers/isdn/hardware/avm/b1pci.c
+1
-10
drivers/isdn/hardware/avm/b1pcmcia.c
drivers/isdn/hardware/avm/b1pcmcia.c
+1
-10
No files found.
drivers/isdn/hardware/avm/avmcard.h
View file @
7a21eb22
...
...
@@ -549,7 +549,7 @@ void b1_register_appl(struct capi_ctr *ctrl, u16 appl,
void
b1_release_appl
(
struct
capi_ctr
*
ctrl
,
u16
appl
);
void
b1_send_message
(
struct
capi_ctr
*
ctrl
,
struct
sk_buff
*
skb
);
void
b1_parse_version
(
avmctrl_info
*
card
);
void
b1_
handle_interrupt
(
avmcard
*
card
);
void
b1_
interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
);
int
b1ctl_read_proc
(
char
*
page
,
char
**
start
,
off_t
off
,
int
count
,
int
*
eof
,
struct
capi_ctr
*
ctrl
);
...
...
drivers/isdn/hardware/avm/b1.c
View file @
7a21eb22
...
...
@@ -438,8 +438,9 @@ void b1_parse_version(avmctrl_info *cinfo)
/* ------------------------------------------------------------- */
void
b1_
handle_interrupt
(
avmcard
*
card
)
void
b1_
interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
avmcard
*
card
=
devptr
;
avmctrl_info
*
cinfo
=
&
card
->
ctrlinfo
[
0
];
struct
capi_ctr
*
ctrl
=
cinfo
->
capi_ctrl
;
unsigned
char
b1cmd
;
...
...
@@ -713,7 +714,7 @@ EXPORT_SYMBOL(b1_release_appl);
EXPORT_SYMBOL
(
b1_send_message
);
EXPORT_SYMBOL
(
b1_parse_version
);
EXPORT_SYMBOL
(
b1_
handle_
interrupt
);
EXPORT_SYMBOL
(
b1_interrupt
);
EXPORT_SYMBOL
(
b1ctl_read_proc
);
...
...
drivers/isdn/hardware/avm/b1isa.c
View file @
7a21eb22
...
...
@@ -34,15 +34,6 @@ MODULE_LICENSE("GPL");
/* ------------------------------------------------------------- */
static
void
b1isa_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
avmcard
*
card
=
(
avmcard
*
)
devptr
;
b1_handle_interrupt
(
card
);
}
/* ------------------------------------------------------------- */
static
struct
capi_driver_interface
*
di
;
/* ------------------------------------------------------------- */
...
...
@@ -136,7 +127,7 @@ static int b1isa_add_card(struct capi_driver *driver, struct capicardparams *p)
request_region
(
p
->
port
,
AVMB1_PORTLEN
,
card
->
name
);
retval
=
request_irq
(
card
->
irq
,
b1
isa
_interrupt
,
0
,
card
->
name
,
card
);
retval
=
request_irq
(
card
->
irq
,
b1_interrupt
,
0
,
card
->
name
,
card
);
if
(
retval
)
{
printk
(
KERN_ERR
"b1isa: unable to get IRQ %d.
\n
"
,
card
->
irq
);
release_region
(
card
->
port
,
AVMB1_PORTLEN
);
...
...
drivers/isdn/hardware/avm/b1pci.c
View file @
7a21eb22
...
...
@@ -46,15 +46,6 @@ static struct capi_driver_interface *di;
/* ------------------------------------------------------------- */
static
void
b1pci_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
avmcard
*
card
=
devptr
;
b1_handle_interrupt
(
card
);
}
/* ------------------------------------------------------------- */
static
char
*
b1pci_procinfo
(
struct
capi_ctr
*
ctrl
)
{
avmctrl_info
*
cinfo
=
(
avmctrl_info
*
)(
ctrl
->
driverdata
);
...
...
@@ -121,7 +112,7 @@ static int b1pci_add_card(struct capi_driver *driver,
b1_reset
(
card
->
port
);
b1_getrevision
(
card
);
retval
=
request_irq
(
card
->
irq
,
b1
pci
_interrupt
,
SA_SHIRQ
,
card
->
name
,
card
);
retval
=
request_irq
(
card
->
irq
,
b1_interrupt
,
SA_SHIRQ
,
card
->
name
,
card
);
if
(
retval
)
{
printk
(
KERN_ERR
"%s: unable to get IRQ %d.
\n
"
,
driver
->
name
,
card
->
irq
);
...
...
drivers/isdn/hardware/avm/b1pcmcia.c
View file @
7a21eb22
...
...
@@ -39,15 +39,6 @@ static struct capi_driver_interface *di;
/* ------------------------------------------------------------- */
static
void
b1pcmcia_interrupt
(
int
interrupt
,
void
*
devptr
,
struct
pt_regs
*
regs
)
{
avmcard
*
card
=
devptr
;
b1_handle_interrupt
(
card
);
}
/* ------------------------------------------------------------- */
static
void
b1pcmcia_remove_ctr
(
struct
capi_ctr
*
ctrl
)
{
avmctrl_info
*
cinfo
=
(
avmctrl_info
*
)(
ctrl
->
driverdata
);
...
...
@@ -120,7 +111,7 @@ static int b1pcmcia_add_card(struct capi_driver *driver,
b1_reset
(
card
->
port
);
b1_getrevision
(
card
);
retval
=
request_irq
(
card
->
irq
,
b1
pcmcia
_interrupt
,
0
,
card
->
name
,
card
);
retval
=
request_irq
(
card
->
irq
,
b1_interrupt
,
0
,
card
->
name
,
card
);
if
(
retval
)
{
printk
(
KERN_ERR
"%s: unable to get IRQ %d.
\n
"
,
driver
->
name
,
card
->
irq
);
...
...
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