RE: [PATCH v2 1/1] atm: remove deprecated use of pci api

2015-01-14 Thread David Laight
From: David Miller > From: Quentin Lambert > Date: Mon, 12 Jan 2015 17:10:42 +0100 > > > @@ -2246,7 +2246,8 @@ static int eni_init_one(struct pci_dev *pci_dev, > > goto err_disable; > > > > zero = &eni_dev->zero; > > - zero->addr = pci_alloc_consistent(pci_dev, ENI_ZEROES_SIZE,

Re: [PATCH v2 1/1] atm: remove deprecated use of pci api

2015-01-14 Thread Quentin Lambert
On 14/01/2015 14:58, chas williams - CONTRACTOR wrote: I think I would like to go through and just fix all the usages of the older pci interface. This patch isn't very complete due to its automated nature. I will make some time this weekend. It was my original intent to produce a complete pat

Re: [PATCH v2 1/1] atm: remove deprecated use of pci api

2015-01-14 Thread chas williams - CONTRACTOR
On Tue, 13 Jan 2015 21:59:44 -0500 (EST) David Miller wrote: > From: Quentin Lambert > Date: Mon, 12 Jan 2015 17:10:42 +0100 > > > @@ -2246,7 +2246,8 @@ static int eni_init_one(struct pci_dev *pci_dev, > > goto err_disable; > > > > zero = &eni_dev->zero; > > - zero->addr = p

Re: [PATCH v2 1/1] atm: remove deprecated use of pci api

2015-01-13 Thread David Miller
From: Quentin Lambert Date: Mon, 12 Jan 2015 17:10:42 +0100 > @@ -2246,7 +2246,8 @@ static int eni_init_one(struct pci_dev *pci_dev, > goto err_disable; > > zero = &eni_dev->zero; > - zero->addr = pci_alloc_consistent(pci_dev, ENI_ZEROES_SIZE, &zero->dma); > + zero->

[PATCH v2 1/1] atm: remove deprecated use of pci api

2015-01-12 Thread Quentin Lambert
Replace occurences of the pci api by appropriate call to the dma api. A simplified version of the semantic patch that finds this problem is as follows: (http://coccinelle.lip6.fr) @deprecated@ idexpression id; position p; @@ ( pci_dma_supported@p ( id, ...) | pci_alloc_consistent@p ( id, ...