diff options
| -rw-r--r-- | arch/arm/mach-imx/devices/platform-ipu-core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-imx/devices/platform-ipu-core.c b/arch/arm/mach-imx/devices/platform-ipu-core.c index fc4dd7cedc11..6bd7c3f37ac0 100644 --- a/arch/arm/mach-imx/devices/platform-ipu-core.c +++ b/arch/arm/mach-imx/devices/platform-ipu-core.c | |||
| @@ -77,7 +77,7 @@ struct platform_device *__init imx_alloc_mx3_camera( | |||
| 77 | 77 | ||
| 78 | pdev = platform_device_alloc("mx3-camera", 0); | 78 | pdev = platform_device_alloc("mx3-camera", 0); |
| 79 | if (!pdev) | 79 | if (!pdev) |
| 80 | goto err; | 80 | return ERR_PTR(-ENOMEM); |
| 81 | 81 | ||
| 82 | pdev->dev.dma_mask = kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); | 82 | pdev->dev.dma_mask = kmalloc(sizeof(*pdev->dev.dma_mask), GFP_KERNEL); |
| 83 | if (!pdev->dev.dma_mask) | 83 | if (!pdev->dev.dma_mask) |
