aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/leds/leds-bd2802.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-bd2802.c')
-rw-r--r--drivers/leds/leds-bd2802.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/leds/leds-bd2802.c b/drivers/leds/leds-bd2802.c
index fb5a3472d614..6078c15d3452 100644
--- a/drivers/leds/leds-bd2802.c
+++ b/drivers/leds/leds-bd2802.c
@@ -678,10 +678,8 @@ static int bd2802_probe(struct i2c_client *client,
678 int ret, i; 678 int ret, i;
679 679
680 led = devm_kzalloc(&client->dev, sizeof(struct bd2802_led), GFP_KERNEL); 680 led = devm_kzalloc(&client->dev, sizeof(struct bd2802_led), GFP_KERNEL);
681 if (!led) { 681 if (!led)
682 dev_err(&client->dev, "failed to allocate driver data\n");
683 return -ENOMEM; 682 return -ENOMEM;
684 }
685 683
686 led->client = client; 684 led->client = client;
687 pdata = led->pdata = dev_get_platdata(&client->dev); 685 pdata = led->pdata = dev_get_platdata(&client->dev);