Re: [PATCH 3/7] spi: spi-fsl-dspi: Remove usage of devm_kzalloc

2015-01-27 Thread Mark Brown
On Tue, Jan 27, 2015 at 04:27:20PM +0530, Bhuvanchandra DV wrote: > devm_* API was supposed to be used only in probe function call. > Memory is allocated at 'probe' and free automatically at 'remove'. Applied, thanks. Please don't dump entire backtraces into your commit logs - they're far too big

Re: [PATCH 3/7] spi: spi-fsl-dspi: Remove usage of devm_kzalloc

2015-01-27 Thread Aaron Brice
On 01/27/2015 03:57 AM, Bhuvanchandra DV wrote: devm_* API was supposed to be used only in probe function call. Memory is allocated at 'probe' and free automatically at 'remove'. Usage of devm_* functions outside probe sometimes leads to memory leak. Avoid using devm_kzalloc in dspi_setup_transfe

[PATCH 3/7] spi: spi-fsl-dspi: Remove usage of devm_kzalloc

2015-01-27 Thread Bhuvanchandra DV
devm_* API was supposed to be used only in probe function call. Memory is allocated at 'probe' and free automatically at 'remove'. Usage of devm_* functions outside probe sometimes leads to memory leak. Avoid using devm_kzalloc in dspi_setup_transfer and use kzalloc instead. Also add the dspi_clean