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>
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;