OSDN Git Service

can: mcp251x: Use dmam_alloc_coherent
authorHimangi Saraogi <himangi774@gmail.com>
Sat, 2 Aug 2014 13:52:04 +0000 (19:22 +0530)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 17 Aug 2014 23:03:43 +0000 (01:03 +0200)
commit3a73aeff37c2e425b11d19c19e42e8269d58d417
treefbb568f13b8c4a91e1b272001263fa2a06bfbce4
parentb25a437206ed5d45087bc40bd48bc34ce3bfa008
can: mcp251x: Use dmam_alloc_coherent

This patch moves the data allocated using dma_alloc_coherent to the
corresponding managed interface and does away with the calls to free the
allocated memory in the probe and remove functions.

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/spi/mcp251x.c