2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-26 03:09:12 +00:00

[rtl818x] Remove broken mmio register support

The rtl818x driver uses programmed I/O but has a fallback to
memory-mapped I/O registers.  The fallback currently will not work since
the registers are accessed using inl()/outl() programmed I/O functions
in the driver.  This patch removes the fallback to we fail cleanly when
programmed I/O is not possible.

Signed-off-by: Stefan Hajnoczi <stefanha@gmail.com>
Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Signed-off-by: Marty Connor <mdc@etherboot.org>
This commit is contained in:
Stefan Hajnoczi 2010-01-22 18:12:48 +00:00 committed by Marty Connor
parent e51ef7912c
commit 5835ed5746

View File

@ -680,9 +680,6 @@ static int rtl818x_probe(struct pci_device *pdev,
dev->netdev->dev = &pdev->dev;
priv->map = (struct rtl818x_csr *)pdev->ioaddr;
if (!priv->map)
priv->map = (struct rtl818x_csr *)pdev->membase;
if (!priv->map) {
DBG("rtl818x: cannot find device memory\n");
err = -ENXIO;