Skip to content

Commit

Permalink
[rtl818x] Remove broken mmio register support
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
stefanha authored and Marty Connor committed Jan 25, 2010
1 parent e51ef79 commit 5835ed5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/drivers/net/rtl818x/rtl818x.c
Expand Up @@ -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;
Expand Down

0 comments on commit 5835ed5

Please sign in to comment.