From 1582e22780da6fff403854dfde086a15c2474769 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Tue, 3 Feb 2004 18:36:41 -0800 Subject: [PATCH] [PATCH] gcc-3.5: drivers/atm/eni.c drivers/atm/eni.c: In function `eni_close': drivers/atm/eni.c:1878: error: invalid lvalue in assignment drivers/atm/eni.c: In function `eni_open': drivers/atm/eni.c:1894: error: invalid lvalue in assignment drivers/atm/eni.c:1905: error: invalid lvalue in assignment drivers/atm/eni.c: In function `eni_init_one': drivers/atm/eni.c:2233: error: invalid lvalue in assignment --- drivers/atm/eni.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/atm/eni.c b/drivers/atm/eni.c index c28b967932df5..b760589009edb 100644 --- a/drivers/atm/eni.c +++ b/drivers/atm/eni.c @@ -1875,7 +1875,7 @@ static void eni_close(struct atm_vcc *vcc) DPRINTK("eni_close: done waiting\n"); /* deallocate memory */ kfree(ENI_VCC(vcc)); - ENI_VCC(vcc) = NULL; + vcc->dev_data = NULL; clear_bit(ATM_VF_ADDR,&vcc->flags); /*foo();*/ } @@ -1891,7 +1891,8 @@ static int eni_open(struct atm_vcc *vcc) DPRINTK(">eni_open\n"); EVENT("eni_open\n",0,0); - if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) ENI_VCC(vcc) = NULL; + if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) + vcc->dev_data = NULL; eni_dev = ENI_DEV(vcc->dev); if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) set_bit(ATM_VF_ADDR,&vcc->flags); @@ -1902,7 +1903,7 @@ static int eni_open(struct atm_vcc *vcc) if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) { eni_vcc = kmalloc(sizeof(struct eni_vcc),GFP_KERNEL); if (!eni_vcc) return -ENOMEM; - ENI_VCC(vcc) = eni_vcc; + vcc->dev_data = eni_vcc; eni_vcc->tx = NULL; /* for eni_close after open_rx */ if ((error = open_rx_first(vcc))) { eni_close(vcc); @@ -2230,7 +2231,7 @@ static int __devinit eni_init_one(struct pci_dev *pci_dev, if (!dev) goto out2; pci_set_drvdata(pci_dev, dev); eni_dev->pci_dev = pci_dev; - ENI_DEV(dev) = eni_dev; + dev->dev_data = eni_dev; eni_dev->asic = ent->driver_data; error = eni_do_init(dev); if (error) goto out3; -- 2.53.0