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: Jingoo Han <jg1.han@samsung.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
ba464d0c88
commit
0167a95698
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||||
|
|
Loading…
Add table
Reference in a new issue