]> git.baikalelectronics.ru Git - kernel.git/commit
pasemi_mac: Stop using the pci config space accessors for register read/writes
authorOlof Johansson <olof@lixom.net>
Sat, 15 Sep 2007 20:44:07 +0000 (13:44 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:50:55 +0000 (16:50 -0700)
commit378dc3e008378a9c6c4d3b8f7efe4dbc760d7d58
tree51b9aa288c8fdd0d32de1d11365ef31b7558ae4c
parentf65e89097171ad44a18b8eb7b2cc04752c710f0e
pasemi_mac: Stop using the pci config space accessors for register read/writes

Move away from using the pci config access functions for simple register
access.  Our device has all of the registers in the config space (hey,
from the hardware point of view it looks reasonable :-), so we need to
somehow get to it. Newer firmwares have it in the device tree such that
we can just get it and ioremap it there (in case it ever moves in future
products). For now, provide a hardcoded fallback for older firmwares.

[ Resolved napi_struct conflicts... -DaveM ]

Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/pasemi_mac.c
drivers/net/pasemi_mac.h