Commit 0167a956 authored by Jingoo Han's avatar Jingoo Han Committed by Linus Torvalds

backlight: adp8870: remove unnecessary OOM messages

The site-specific OOM messages are unnecessary, because they duplicate
the MM subsystem generic OOM message.
Signed-off-by: default avatarJingoo Han <jg1.han@samsung.com>
Acked-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ba464d0c
...@@ -246,10 +246,8 @@ static int adp8870_led_probe(struct i2c_client *client) ...@@ -246,10 +246,8 @@ static int adp8870_led_probe(struct i2c_client *client)
led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led), led = devm_kzalloc(&client->dev, pdata->num_leds * sizeof(*led),
GFP_KERNEL); GFP_KERNEL);
if (led == NULL) { if (led == NULL)
dev_err(&client->dev, "failed to alloc memory\n");
return -ENOMEM; return -ENOMEM;
}
ret = adp8870_write(client, ADP8870_ISCLAW, pdata->led_fade_law); ret = adp8870_write(client, ADP8870_ISCLAW, pdata->led_fade_law);
if (ret) if (ret)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment