summaryrefslogtreecommitdiffstats
path: root/drivers/pwm/pwm-tiecap.c
diff options
context:
space:
mode:
authorJingoo Han <jg1.han@samsung.com>2014-04-23 18:41:27 +0900
committerThierry Reding <thierry.reding@gmail.com>2014-04-28 13:37:48 +0200
commitc10d50631f29a1f09a0f3286e988877bd76733e3 (patch)
tree4e7adc0e6e9d41cc4c499580f1e19a4104ecf775 /drivers/pwm/pwm-tiecap.c
parent474b69025d60a8c45ecd32f9ae422c7c1a86853e (diff)
downloadlinux-c10d50631f29a1f09a0f3286e988877bd76733e3.tar.gz
linux-c10d50631f29a1f09a0f3286e988877bd76733e3.tar.bz2
linux-c10d50631f29a1f09a0f3286e988877bd76733e3.zip
pwm: pwm-tiecap: 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/pwm-tiecap.c')
-rw-r--r--drivers/pwm/pwm-tiecap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-tiecap.c b/drivers/pwm/pwm-tiecap.c
index 032092c7a6ae..74efbe7f20c3 100644
--- a/drivers/pwm/pwm-tiecap.c
+++ b/drivers/pwm/pwm-tiecap.c
@@ -209,10 +209,8 @@ static int ecap_pwm_probe(struct platform_device *pdev)
u16 status;
pc = devm_kzalloc(&pdev->dev, sizeof(*pc), GFP_KERNEL);
- if (!pc) {
- dev_err(&pdev->dev, "failed to allocate memory\n");
+ if (!pc)
return -ENOMEM;
- }
clk = devm_clk_get(&pdev->dev, "fck");
if (IS_ERR(clk)) {