aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ppc4xx
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2016-06-07 13:38:41 -0400
committerVinod Koul <vinod.koul@intel.com>2016-06-21 12:05:00 -0400
commitaef94fea97eb77f86159375825a370b45d9f2fec (patch)
tree275639d62e6c0920e859e3d22786cb92a4098e04 /drivers/dma/ppc4xx
parent71f7e6cc55003ca6f616ff4094253d28de5d9254 (diff)
dmaengine: Remove site specific OOM error messages on kzalloc
If kzalloc() fails it will issue it's own error message including a dump_stack(). So remove the site specific error messages. Signed-off-by: Peter Griffin <peter.griffin@linaro.org> Acked-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'drivers/dma/ppc4xx')
-rw-r--r--drivers/dma/ppc4xx/adma.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dma/ppc4xx/adma.c b/drivers/dma/ppc4xx/adma.c
index 9217f893b0d1..da3688b94bdc 100644
--- a/drivers/dma/ppc4xx/adma.c
+++ b/drivers/dma/ppc4xx/adma.c
@@ -4084,7 +4084,6 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev)
4084 /* create a device */ 4084 /* create a device */
4085 adev = kzalloc(sizeof(*adev), GFP_KERNEL); 4085 adev = kzalloc(sizeof(*adev), GFP_KERNEL);
4086 if (!adev) { 4086 if (!adev) {
4087 dev_err(&ofdev->dev, "failed to allocate device\n");
4088 initcode = PPC_ADMA_INIT_ALLOC; 4087 initcode = PPC_ADMA_INIT_ALLOC;
4089 ret = -ENOMEM; 4088 ret = -ENOMEM;
4090 goto err_adev_alloc; 4089 goto err_adev_alloc;
@@ -4145,7 +4144,6 @@ static int ppc440spe_adma_probe(struct platform_device *ofdev)
4145 /* create a channel */ 4144 /* create a channel */
4146 chan = kzalloc(sizeof(*chan), GFP_KERNEL); 4145 chan = kzalloc(sizeof(*chan), GFP_KERNEL);
4147 if (!chan) { 4146 if (!chan) {
4148 dev_err(&ofdev->dev, "can't allocate channel structure\n");
4149 initcode = PPC_ADMA_INIT_CHANNEL; 4147 initcode = PPC_ADMA_INIT_CHANNEL;
4150 ret = -ENOMEM; 4148 ret = -ENOMEM;
4151 goto err_chan_alloc; 4149 goto err_chan_alloc;