diff options
author | Jingoo Han <jg1.han@samsung.com> | 2014-04-03 23:49:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-04-04 01:21:10 +0200 |
commit | 619e1b491b7065d5db6d547be12a8d073825e992 (patch) | |
tree | 965a41faa7cd969601a43f3fcba703bed17ba144 /drivers/video/backlight/ili922x.c | |
parent | backlight: hx8357: remove unnecessary OOM messages (diff) | |
download | linux-619e1b491b7065d5db6d547be12a8d073825e992.tar.xz linux-619e1b491b7065d5db6d547be12a8d073825e992.zip |
backlight: ili922x: 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>
Acked-by: Stefano Babic <sbabic@denx.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/backlight/ili922x.c')
-rw-r--r-- | drivers/video/backlight/ili922x.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/video/backlight/ili922x.c b/drivers/video/backlight/ili922x.c index 73464e4b4c74..ea67fe199e34 100644 --- a/drivers/video/backlight/ili922x.c +++ b/drivers/video/backlight/ili922x.c @@ -482,10 +482,8 @@ static int ili922x_probe(struct spi_device *spi) u16 reg = 0; ili = devm_kzalloc(&spi->dev, sizeof(*ili), GFP_KERNEL); - if (!ili) { - dev_err(&spi->dev, "cannot alloc priv data\n"); + if (!ili) return -ENOMEM; - } ili->spi = spi; spi_set_drvdata(spi, ili); |