]> bbs.cooldavid.org Git - net-next-2.6.git/commit - drivers/net/tg3.c
tg3: Use pci_ioremap_bar()
authorMatt Carlson <mcarlson@broadcom.com>
Tue, 4 Nov 2008 00:49:57 +0000 (16:49 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Nov 2008 00:49:57 +0000 (16:49 -0800)
commit63532394af307795ea637a283bd1fd057f5dfcea
treed078a0e3339cf7d6df60c42ab6c28ed2495b9eca
parentc88e668b52c8cd8bc55b6734c7dfbb0cb005d445
tg3: Use pci_ioremap_bar()

This patch replaces the existing APE register mapping code with a call
to pci_ioremap_bar().  The code that maps the main device register space
did not undergo a similar change because the information derived from
the pci_resource_start() and pci_resource_len() is still used to
populate the (optional) mem_start and mem_end netdevice members.
Replace hardcoded constants where appropriate.

Signed-off-by: Matt Carlson <mcarlson@broadcom.com>
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/tg3.c