diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-23 18:40:49 +0900 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-04-28 13:37:48 +0200 |
commit | 9321fe9dbe1e32c2f24ba4b1fa92547016cd1174 (patch) | |
tree | be42bfcebe2e08d232a5485804611380cf654389 /drivers | |
parent | 6c5059ccce2b66c9ca73f9c826b8e26d883fcf32 (diff) |
pwm: spear: Remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they
duplicate the MM subsystem generic OOM message.
Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pwm/pwm-spear.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-spear.c b/drivers/pwm/pwm-spear.c index 8ad26b8bf418..b4f6d0df5f2d 100644 --- a/drivers/pwm/pwm-spear.c +++ b/drivers/pwm/pwm-spear.c @@ -179,10 +179,8 @@ static int spear_pwm_probe(struct platform_device *pdev) u32 val; pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL); - if (!pc) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (!pc) return -ENOMEM; - } r = platform_get_resource(pdev, IORESOURCE_MEM, 0); pc->mmio_base = devm_ioremap_resource(&pdev->dev, r); |