diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-06-27 08:54:34 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-05 13:40:49 -0400 |
commit | c3d8e682b7d10f57d13c86ecbb15806781d6e953 (patch) | |
tree | b3c20aaf5679ad22a91d14de16615f0d31e3e19d /drivers/net/gt96100eth.c | |
parent | 03a8c6611aa18f919f8700b18f925e9008b616a8 (diff) |
[netdrvr] Remove Becker-template 'io_size' member, when invariant
Becker-derived drivers often have the 'io_size' member in their chip
info struct, indicating the minimum required size of the I/O resource
(usually a PCI BAR). For many situations, this number is either
constant or irrelevant (due to pci_iomap convenience behavior).
This change removes the io_size invariant member, and replaces it with a
compile-time constant.
Drivers updated: fealnx, gt96100eth, winbond-840, yellowfin
Additionally,
- gt96100eth: unused 'drv_flags' removed from gt96100eth
- winbond-840: unused struct match_info removed
- winbond-840: mark pci_id_tbl[] const, __devinitdata
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/gt96100eth.c')
-rw-r--r-- | drivers/net/gt96100eth.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/gt96100eth.c b/drivers/net/gt96100eth.c index 49dacc6e35aa..2b4db7414475 100644 --- a/drivers/net/gt96100eth.c +++ b/drivers/net/gt96100eth.c | |||
@@ -699,7 +699,6 @@ static int __init gt96100_probe1(struct pci_dev *pci, int port_num) | |||
699 | memset(gp, 0, sizeof(*gp)); // clear it | 699 | memset(gp, 0, sizeof(*gp)); // clear it |
700 | 700 | ||
701 | gp->port_num = port_num; | 701 | gp->port_num = port_num; |
702 | gp->io_size = GT96100_ETH_IO_SIZE; | ||
703 | gp->port_offset = port_num * GT96100_ETH_IO_SIZE; | 702 | gp->port_offset = port_num * GT96100_ETH_IO_SIZE; |
704 | gp->phy_addr = phy_addr; | 703 | gp->phy_addr = phy_addr; |
705 | gp->chip_rev = chip_rev; | 704 | gp->chip_rev = chip_rev; |
@@ -1531,7 +1530,7 @@ static void gt96100_cleanup_module(void) | |||
1531 | + sizeof(gt96100_td_t) * TX_RING_SIZE, | 1530 | + sizeof(gt96100_td_t) * TX_RING_SIZE, |
1532 | gp->rx_ring); | 1531 | gp->rx_ring); |
1533 | free_netdev(gtif->dev); | 1532 | free_netdev(gtif->dev); |
1534 | release_region(gtif->iobase, gp->io_size); | 1533 | release_region(gtif->iobase, GT96100_ETH_IO_SIZE); |
1535 | } | 1534 | } |
1536 | } | 1535 | } |
1537 | } | 1536 | } |