diff options
-rw-r--r-- | arch/arm/plat-pxa/ssp.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/plat-pxa/ssp.c b/arch/arm/plat-pxa/ssp.c index 8e11e96eab5e..f746b6a388b8 100644 --- a/arch/arm/plat-pxa/ssp.c +++ b/arch/arm/plat-pxa/ssp.c | |||
@@ -80,10 +80,9 @@ static int pxa_ssp_probe(struct platform_device *pdev) | |||
80 | int ret = 0; | 80 | int ret = 0; |
81 | 81 | ||
82 | ssp = kzalloc(sizeof(struct ssp_device), GFP_KERNEL); | 82 | ssp = kzalloc(sizeof(struct ssp_device), GFP_KERNEL); |
83 | if (ssp == NULL) { | 83 | if (ssp == NULL) |
84 | dev_err(&pdev->dev, "failed to allocate memory"); | ||
85 | return -ENOMEM; | 84 | return -ENOMEM; |
86 | } | 85 | |
87 | ssp->pdev = pdev; | 86 | ssp->pdev = pdev; |
88 | 87 | ||
89 | ssp->clk = clk_get(&pdev->dev, NULL); | 88 | ssp->clk = clk_get(&pdev->dev, NULL); |