summaryrefslogtreecommitdiff
path: root/drivers/pwm
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-23 13:40:49 +0400
committerThierry Reding <thierry.reding@gmail.com>2014-04-28 15:37:48 +0400
commit9321fe9dbe1e32c2f24ba4b1fa92547016cd1174 (patch)
treebe42bfcebe2e08d232a5485804611380cf654389 /drivers/pwm
parent6c5059ccce2b66c9ca73f9c826b8e26d883fcf32 (diff)
downloadlinux-9321fe9dbe1e32c2f24ba4b1fa92547016cd1174.tar.xz
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/pwm')
-rw-r--r--drivers/pwm/pwm-spear.c4
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);