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
1998eb88
Commit
1998eb88
authored
May 14, 2003
by
Andrew Morton
Committed by
David S. Miller
May 14, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Fix sb1000.c build.
parent
cfed27c6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
drivers/net/sb1000.c
drivers/net/sb1000.c
+8
-12
No files found.
drivers/net/sb1000.c
View file @
1998eb88
...
...
@@ -137,17 +137,6 @@ static const struct pnp_device_id sb1000_pnp_ids[] = {
};
MODULE_DEVICE_TABLE
(
pnp
,
sb1000_pnp_ids
);
static
void
sb1000_setup
(
struct
net_device
*
dev
)
{
dev
->
type
=
ARPHRD_ETHER
;
dev
->
mtu
=
1500
;
dev
->
addr_len
=
ETH_ALEN
;
/* New-style flags. */
dev
->
flags
=
IFF_POINTOPOINT
|
IFF_NOARP
;
}
static
int
sb1000_probe_one
(
struct
pnp_dev
*
pdev
,
const
struct
pnp_device_id
*
id
)
{
...
...
@@ -188,11 +177,18 @@ sb1000_probe_one(struct pnp_dev *pdev, const struct pnp_device_id *id)
"S/N %#8.8x, IRQ %d.
\n
"
,
dev
->
name
,
dev
->
base_addr
,
dev
->
mem_start
,
serial_number
,
dev
->
irq
);
dev
=
alloc_
netdev
(
sizeof
(
struct
sb1000_private
),
"cm%d"
,
sb1000_setup
);
dev
=
alloc_
etherdev
(
sizeof
(
struct
sb1000_private
)
);
if
(
!
dev
)
{
error
=
-
ENOMEM
;
goto
out_release_regions
;
}
/*
* The SB1000 is an rx-only cable modem device. The uplink is a modem
* and we do not want to arp on it.
*/
dev
->
flags
=
IFF_POINTOPOINT
|
IFF_NOARP
;
SET_MODULE_OWNER
(
dev
);
if
(
sb1000_debug
>
0
)
...
...
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