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
422614a5
Commit
422614a5
authored
Sep 20, 2003
by
Stephen Hemminger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PATCH] Road Runner HIPPI driver (rrunner)
Small clean up, to use current APIs.
parent
3ebf53b6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
drivers/net/rrunner.c
drivers/net/rrunner.c
+5
-8
drivers/net/rrunner.h
drivers/net/rrunner.h
+0
-1
No files found.
drivers/net/rrunner.c
View file @
422614a5
...
...
@@ -123,7 +123,6 @@ static int __devinit rr_init_one(struct pci_dev *pdev,
rrpriv
->
pci_dev
=
pdev
;
spin_lock_init
(
&
rrpriv
->
lock
);
sprintf
(
rrpriv
->
name
,
"RoadRunner serial HIPPI"
);
dev
->
irq
=
pdev
->
irq
;
dev
->
open
=
&
rr_open
;
...
...
@@ -227,7 +226,7 @@ static int __devinit rr_init_one(struct pci_dev *pdev,
pci_set_drvdata
(
pdev
,
NULL
);
}
out2:
kfree
(
dev
);
free_netdev
(
dev
);
out3:
return
ret
;
}
...
...
@@ -235,9 +234,10 @@ static int __devinit rr_init_one(struct pci_dev *pdev,
static
void
__devexit
rr_remove_one
(
struct
pci_dev
*
pdev
)
{
struct
net_device
*
dev
=
pci_get_drvdata
(
pdev
);
struct
rr_private
*
rr
=
(
struct
rr_private
*
)
dev
->
priv
;
if
(
dev
)
{
struct
rr_private
*
rr
=
dev
->
priv
;
if
(
!
(
readl
(
&
rr
->
regs
->
HostCtrl
)
&
NIC_HALTED
)){
printk
(
KERN_ERR
"%s: trying to unload running NIC
\n
"
,
dev
->
name
);
...
...
@@ -1201,8 +1201,7 @@ static int rr_open(struct net_device *dev)
readl
(
&
regs
->
HostCtrl
);
spin_unlock_irqrestore
(
&
rrpriv
->
lock
,
flags
);
if
(
request_irq
(
dev
->
irq
,
rr_interrupt
,
SA_SHIRQ
,
rrpriv
->
name
,
dev
))
{
if
(
request_irq
(
dev
->
irq
,
rr_interrupt
,
SA_SHIRQ
,
dev
->
name
,
dev
))
{
printk
(
KERN_WARNING
"%s: Requested IRQ %d is busy
\n
"
,
dev
->
name
,
dev
->
irq
);
ecode
=
-
EAGAIN
;
...
...
@@ -1222,7 +1221,6 @@ static int rr_open(struct net_device *dev)
netif_start_queue
(
dev
);
MOD_INC_USE_COUNT
;
return
ecode
;
error:
...
...
@@ -1414,7 +1412,6 @@ static int rr_close(struct net_device *dev)
free_irq
(
dev
->
irq
,
dev
);
spin_unlock_irqrestore
(
&
rrpriv
->
lock
,
flags
);
MOD_DEC_USE_COUNT
;
return
0
;
}
...
...
@@ -1727,7 +1724,7 @@ static struct pci_driver rr_driver = {
.
name
=
"rrunner"
,
.
id_table
=
rr_pci_tbl
,
.
probe
=
rr_init_one
,
.
remove
=
rr_remove_one
,
.
remove
=
__devexit_p
(
rr_remove_one
)
,
};
static
int
__init
rr_init_module
(
void
)
...
...
drivers/net/rrunner.h
View file @
422614a5
...
...
@@ -820,7 +820,6 @@ struct rr_private
u32
tx_full
;
u32
fw_rev
;
volatile
short
fw_running
;
char
name
[
24
];
/* The assigned name */
struct
net_device_stats
stats
;
struct
pci_dev
*
pci_dev
;
};
...
...
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