A proposal to check the device in generic way

2013-03-11 Thread Shevchenko, Andriy
Hello. Currently in linux-next we have the following things: $ git grep -n 'chan->device->dev->driver' drivers/dma/ drivers/dma/amba-pl08x.c:1594: if (chan->device->dev->driver != &pl08x_amba_driver.drv) drivers/dma/dmaengine.c:190:return chan->device->dev->driver->owner; drivers/dma/edma.c

Re: A proposal to check the device in generic way

2013-03-11 Thread Guennadi Liakhovetski
Hi Andriy (adding Russell to CC) On Mon, 11 Mar 2013, Shevchenko, Andriy wrote: > Hello. > > Currently in linux-next we have the following things: > > $ git grep -n 'chan->device->dev->driver' drivers/dma/ > > drivers/dma/amba-pl08x.c:1594: if (chan->device->dev->driver != > &pl08x_amba_driv

Re: A proposal to check the device in generic way

2013-03-11 Thread Shevchenko, Andriy
On Mon, 2013-03-11 at 13:26 +0100, Guennadi Liakhovetski wrote: > > Currently in linux-next we have the following things: > > > > $ git grep -n 'chan->device->dev->driver' drivers/dma/ > > > > drivers/dma/amba-pl08x.c:1594: if (chan->device->dev->driver != > > &pl08x_amba_driver.drv) > > driver

Re: A proposal to check the device in generic way

2013-03-11 Thread Arnd Bergmann
On Monday 11 March 2013, Shevchenko, Andriy wrote: > Hello. > > Currently in linux-next we have the following things: > > $ git grep -n 'chan->device->dev->driver' drivers/dma/ > > drivers/dma/amba-pl08x.c:1594: if (chan->device->dev->driver != > &pl08x_amba_driver.drv) > drivers/dma/dmaengine.

Re: A proposal to check the device in generic way

2013-03-11 Thread Russell King - ARM Linux
On Mon, Mar 11, 2013 at 01:26:01PM +0100, Guennadi Liakhovetski wrote: > Hi Andriy > > (adding Russell to CC) > > On Mon, 11 Mar 2013, Shevchenko, Andriy wrote: > > > Hello. > > > > Currently in linux-next we have the following things: > > > > $ git grep -n 'chan->device->dev->driver' drivers/