diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-23 18:40:08 +0900 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2014-04-28 13:37:48 +0200 |
commit | d93fc78f47f93a25a9f99fea613616901331d213 (patch) | |
tree | c58f2d83db3edf2db2338fc05d7d53de4d177e6a /drivers/pwm | |
parent | 1cbec749bf5a7d9259ce0650e2287cf95e65225d (diff) | |
download | linux-d93fc78f47f93a25a9f99fea613616901331d213.tar.gz linux-d93fc78f47f93a25a9f99fea613616901331d213.tar.bz2 linux-d93fc78f47f93a25a9f99fea613616901331d213.zip |
pwm: pxa: 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-pxa.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c index cd356d870244..0b312ec420b6 100644 --- a/drivers/pwm/pwm-pxa.c +++ b/drivers/pwm/pwm-pxa.c @@ -179,10 +179,8 @@ static int pwm_probe(struct platform_device *pdev) return -EINVAL; pwm = devm_kzalloc(&pdev->dev, sizeof(*pwm), GFP_KERNEL); - if (pwm == NULL) { - dev_err(&pdev->dev, "failed to allocate memory\n"); + if (pwm == NULL) return -ENOMEM; - } pwm->clk = devm_clk_get(&pdev->dev, NULL); if (IS_ERR(pwm->clk)) |