소스 검색

[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>
tags/v1.0.0-rc1
Stefan Hajnoczi 14 년 전
부모
커밋
5835ed5746
1개의 변경된 파일0개의 추가작업 그리고 3개의 파일을 삭제
  1. 0
    3
      src/drivers/net/rtl818x/rtl818x.c

+ 0
- 3
src/drivers/net/rtl818x/rtl818x.c 파일 보기

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

Loading…
취소
저장