MLK-11907 dma: pxp-dev: allocate the 'sg' buffer dynamically.
authorFancy Fang <chen.fang@freescale.com>
Thu, 26 Nov 2015 08:47:07 +0000 (16:47 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 19:49:15 +0000 (14:49 -0500)
commitc6b6b161bfd72bb18f9b3210cde5f822077097a5
tree4dfe1e5082c66d463085e081f458b6d66d0707e5
parentdcbc57af3662c86324a30780fc0607ee0dd49804
MLK-11907 dma: pxp-dev: allocate the 'sg' buffer dynamically.

The 'sg' buffer should be allocated dynamically, since its
size is dependent on the 'sg_len' which is calculated
according to the functions required.

Signed-off-by: Fancy Fang <chen.fang@freescale.com>
(cherry picked from commit 57f08c108fc4f4721449b4b94be9820c7443978a)
drivers/dma/pxp/pxp_device.c