diff options
author | Daniel Mack <zonque@gmail.com> | 2013-08-12 04:37:14 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-08-14 14:54:12 -0400 |
commit | 64be28146f746681c5f5625d321dd67602bb264c (patch) | |
tree | a7d282f1998ef0ee0ff840456320b2e96da834ba | |
parent | 4edec9eaf40877535b9b05cb0bf699f353c53418 (diff) |
ARM: pxa: ssp: remove unnecessary warning on kzalloc() failure
The memory subsystem will already complain loudly enough in such cases.
Signed-off-by: Daniel Mack <zonque@gmail.com>
Acked-by: Haojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
-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); |