cnic: Remove uio mem[0].
authorMichael Chan <mchan@broadcom.com>
Wed, 27 Jun 2012 15:08:21 +0000 (15:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 28 Jun 2012 04:20:09 +0000 (21:20 -0700)
This memory region is no longer used.  Userspace gets the BAR address
directly from sysfs.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/cnic.c

index 5980443cb8950ea9bb229be21d1e9cd42fa8518b..ec43df1668c13ac8a4eadad789ed3d2d4ab6318e 100644 (file)
@@ -1063,10 +1063,7 @@ static int cnic_init_uio(struct cnic_dev *dev)
 
        uinfo = &udev->cnic_uinfo;
 
-       uinfo->mem[0].addr = dev->netdev->base_addr;
-       uinfo->mem[0].internal_addr = dev->regview;
-       uinfo->mem[0].size = dev->netdev->mem_end - dev->netdev->mem_start;
-       uinfo->mem[0].memtype = UIO_MEM_PHYS;
+       uinfo->mem[0].memtype = UIO_MEM_NONE;
 
        if (test_bit(CNIC_F_BNX2_CLASS, &dev->flags)) {
                uinfo->mem[1].addr = (unsigned long) cp->status_blk.gen &