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
3c54d14f
Commit
3c54d14f
authored
Jun 02, 2003
by
Alexander Viro
Committed by
David S. Miller
Jun 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[NET]: Eliminate init_fddidev.
parent
80e47371
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
30 deletions
+7
-30
drivers/net/defxx.c
drivers/net/defxx.c
+7
-6
drivers/net/net_init.c
drivers/net/net_init.c
+0
-23
include/linux/fddidevice.h
include/linux/fddidevice.h
+0
-1
No files found.
drivers/net/defxx.c
View file @
3c54d14f
...
@@ -425,11 +425,7 @@ static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, long ioaddr)
...
@@ -425,11 +425,7 @@ static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, long ioaddr)
}
}
#endif
#endif
/*
dev
=
alloc_fddidev
(
sizeof
(
*
bp
));
* init_fddidev() allocates a device structure with private data, clears the device structure and private data,
* and calls fddi_setup() and register_netdev(). Not much left to do for us here.
*/
dev
=
init_fddidev
(
NULL
,
sizeof
(
*
bp
));
if
(
!
dev
)
{
if
(
!
dev
)
{
printk
(
KERN_ERR
"defxx: unable to allocate fddidev, aborting
\n
"
);
printk
(
KERN_ERR
"defxx: unable to allocate fddidev, aborting
\n
"
);
return
-
ENOMEM
;
return
-
ENOMEM
;
...
@@ -483,12 +479,17 @@ static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, long ioaddr)
...
@@ -483,12 +479,17 @@ static int __devinit dfx_init_one_pci_or_eisa(struct pci_dev *pdev, long ioaddr)
goto
err_out_region
;
goto
err_out_region
;
}
}
err
=
register_netdev
(
dev
);
if
(
err
)
goto
err_out_kfree
;
return
0
;
return
0
;
err_out_kfree:
if
(
bp
->
kmalloced
)
kfree
(
bp
->
kmalloced
);
err_out_region:
err_out_region:
release_region
(
ioaddr
,
pdev
?
PFI_K_CSR_IO_LEN
:
PI_ESIC_K_CSR_IO_LEN
);
release_region
(
ioaddr
,
pdev
?
PFI_K_CSR_IO_LEN
:
PI_ESIC_K_CSR_IO_LEN
);
err_out:
err_out:
unregister_netdev
(
dev
);
kfree
(
dev
);
kfree
(
dev
);
return
err
;
return
err
;
}
}
...
...
drivers/net/net_init.c
View file @
3c54d14f
...
@@ -251,28 +251,6 @@ static int eth_change_mtu(struct net_device *dev, int new_mtu)
...
@@ -251,28 +251,6 @@ static int eth_change_mtu(struct net_device *dev, int new_mtu)
#ifdef CONFIG_FDDI
#ifdef CONFIG_FDDI
/**
* init_fddidev - Register FDDI device
* @dev: A FDDI device structure to be filled in, or %NULL if a new
* struct should be allocated.
* @sizeof_priv: Size of additional driver-private structure to be allocated
* for this ethernet device
*
* Fill in the fields of the device structure with FDDI-generic values.
*
* If no device structure is passed, a new one is constructed, complete with
* a private data area of size @sizeof_priv. A 32-byte (not bit)
* alignment is enforced for this private data area.
*
* If an empty string area is passed as dev->name, or a new structure is made,
* a new name string is constructed.
*/
struct
net_device
*
init_fddidev
(
struct
net_device
*
dev
,
int
sizeof_priv
)
{
return
init_netdev
(
dev
,
sizeof_priv
,
"fddi%d"
,
fddi_setup
);
}
/**
/**
* alloc_fddidev - Register FDDI device
* alloc_fddidev - Register FDDI device
* @sizeof_priv: Size of additional driver-private structure to be allocated
* @sizeof_priv: Size of additional driver-private structure to be allocated
...
@@ -290,7 +268,6 @@ struct net_device *alloc_fddidev(int sizeof_priv)
...
@@ -290,7 +268,6 @@ struct net_device *alloc_fddidev(int sizeof_priv)
return
alloc_netdev
(
sizeof_priv
,
"fddi%d"
,
fddi_setup
);
return
alloc_netdev
(
sizeof_priv
,
"fddi%d"
,
fddi_setup
);
}
}
EXPORT_SYMBOL
(
init_fddidev
);
EXPORT_SYMBOL
(
alloc_fddidev
);
EXPORT_SYMBOL
(
alloc_fddidev
);
static
int
fddi_change_mtu
(
struct
net_device
*
dev
,
int
new_mtu
)
static
int
fddi_change_mtu
(
struct
net_device
*
dev
,
int
new_mtu
)
...
...
include/linux/fddidevice.h
View file @
3c54d14f
...
@@ -34,7 +34,6 @@ extern int fddi_header(struct sk_buff *skb,
...
@@ -34,7 +34,6 @@ extern int fddi_header(struct sk_buff *skb,
extern
int
fddi_rebuild_header
(
struct
sk_buff
*
skb
);
extern
int
fddi_rebuild_header
(
struct
sk_buff
*
skb
);
extern
unsigned
short
fddi_type_trans
(
struct
sk_buff
*
skb
,
extern
unsigned
short
fddi_type_trans
(
struct
sk_buff
*
skb
,
struct
net_device
*
dev
);
struct
net_device
*
dev
);
extern
struct
net_device
*
init_fddidev
(
struct
net_device
*
dev
,
int
sizeof_priv
);
extern
struct
net_device
*
alloc_fddidev
(
int
sizeof_priv
);
extern
struct
net_device
*
alloc_fddidev
(
int
sizeof_priv
);
#endif
#endif
...
...
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